mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-23 13:38:35 +00:00
16 lines
369 B
PowerShell
16 lines
369 B
PowerShell
|
#!C:\Program Files\PowerShell\7\pwsh.EXE -File
|
||
|
|
||
|
$bin = '/usr/bin/neo-go.exe'
|
||
|
|
||
|
for ( $i = 0; $i -lt $args.count; $i++ ) {
|
||
|
if ($args[$i] -eq "node"){
|
||
|
Write-Host "=> Try to restore blocks before running node"
|
||
|
if (($Env:ACC -ne $null) -and (Test-Path $Env:ACC -PathType Leaf)) {
|
||
|
& $bin db restore -p --config-path /config -i $Env:ACC
|
||
|
}
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
|
||
|
& $bin $args
|