github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/.docker/privnet-entrypoint.ps1 (about) 1 #!C:\Program Files\PowerShell\7\pwsh.EXE -File 2 3 $bin = '/usr/bin/neo-go.exe' 4 5 for ( $i = 0; $i -lt $args.count; $i++ ) { 6 if ($args[$i] -eq "node"){ 7 Write-Host "=> Try to restore blocks before running node" 8 if (($Env:ACC -ne $null) -and (Test-Path $Env:ACC -PathType Leaf)) { 9 & $bin db restore -p --config-path /config -i $Env:ACC 10 } 11 break 12 } 13 } 14 15 & $bin $args