From 436c6ead717355e8ea85454009df1d87d289cc74 Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Wed, 13 Mar 2024 13:04:04 +0000 Subject: [PATCH] fixed curl refs --- backup.ps1 | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/backup.ps1 b/backup.ps1 index 65883c7..655529e 100644 --- a/backup.ps1 +++ b/backup.ps1 @@ -1,5 +1,4 @@ -Set-Alias -Name .bin/curl.exe -Value ./bin/.bin/curl.exe.exe $dir = Split-Path $script:MyInvocation.MyCommand.Path . "$dir/env.ps1" @@ -18,19 +17,19 @@ Write-Host $running if ( $running ) { Write-Host "Backup already running; $running. Exiting..." if ( $KUMA_ID -ne "" ){ - .bin/curl.exe https://$KUMA_URL/api/push/$KUMA_ID?status=down"&"msg=Failed"&"ping= + ./bin/curl.exe https://$KUMA_URL/api/push/$KUMA_ID?status=down"&"msg=Failed"&"ping= } if ( $HEALTHCHECK_UUID -ne "" ) { - .bin/curl.exe https://hc-ping.com/$HEALTHCHECK_UUID/fail + ./bin/curl.exe https://hc-ping.com/$HEALTHCHECK_UUID/fail } exit } Write-Host "Not currently running. Continuing..." if ( $KUMA_ID -ne "" ){ - .bin/curl.exe https://$KUMA_URL/api/push/$KUMA_ID?status=up"&"msg=Running"&"ping= + ./bin/curl.exe https://$KUMA_URL/api/push/$KUMA_ID?status=up"&"msg=Running"&"ping= } if ( $HEALTHCHECK_UUID -ne "" ) { - .bin/curl.exe https://hc-ping.com/$HEALTHCHECK_UUID/start + ./bin/curl.exe https://hc-ping.com/$HEALTHCHECK_UUID/start } if ( $PRE_RUN_SCRIPT ) { . $dir/$PRE_RUN_SCRIPT @@ -41,16 +40,16 @@ if ( $LastExitCode -eq 0 ) { . $dir/$POST_RUN_SCRIPT } if ( $KUMA_ID -ne "" ){ - .bin/curl.exe https://$KUMA_URL/api/push/$KUMA_ID?status=up"&"msg=Completed"&"ping= + ./bin/curl.exe https://$KUMA_URL/api/push/$KUMA_ID?status=up"&"msg=Completed"&"ping= } if ( $HEALTHCHECK_UUID -ne "" ) { - .bin/curl.exe https://hc-ping.com/$HEALTHCHECK_UUID + ./bin/curl.exe https://hc-ping.com/$HEALTHCHECK_UUID } } else { if ( $KUMA_ID -ne "" ){ - .bin/curl.exe https://$KUMA_URL/api/push/$KUMA_ID?status=down"&"msg=Failed"&"ping= + ./bin/curl.exe https://$KUMA_URL/api/push/$KUMA_ID?status=down"&"msg=Failed"&"ping= } if ( $HEALTHCHECK_UUID -ne "" ) { - .bin/curl.exe https://hc-ping.com/$HEALTHCHECK_UUID/fail + ./bin/curl.exe https://hc-ping.com/$HEALTHCHECK_UUID/fail } }