Skip to content

Commit 15a5ad1

Browse files
committed
Added sleep on upgrades
1 parent 77b1e93 commit 15a5ad1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

upgrade/upgrade.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ if ($startResult.ExitCode -ne 0) {
2222
Exit $startResult.ExitCode
2323
}
2424

25+
Start-Sleep -Seconds 5
26+
2527
Write-Host "Fetching and executing upgrade script in $CONTAINER_NAME for $APPLIANCE_NAME to version $VERSION..."
2628
$curlCommand = "curl -fsSL 'https://raw.githubusercontent.com/ipv6rs/cloudseeder-updates/main/appliances/$APPLIANCE_NAME/$VERSION' | bash"
2729
$execResult = Start-Process -FilePath "podman" -ArgumentList "exec", $CONTAINER_NAME, "sh", "-c", "`"$curlCommand`"" -NoNewWindow -Wait -PassThru

upgrade/upgrade.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ if [ $? -ne 0 ]; then
2323
exit 1
2424
fi
2525

26+
sleep 5
27+
2628
echo "Fetching and executing upgrade script in $CONTAINER_NAME for $APPLIANCE_NAME to version $VERSION..."
2729
podman exec "$CONTAINER_NAME" sh -c "curl -fsSL 'https://raw.githubusercontent.com/ipv6rs/cloudseeder-updates/main/appliances/$APPLIANCE_NAME/$VERSION' | bash"
2830
if [ $? -ne 0 ]; then

0 commit comments

Comments
 (0)