From 39db9b3ebe87bbe8cbe84b3670a87b962fe9473d Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Wed, 13 Mar 2024 11:33:36 +0000 Subject: [PATCH] fixed some curl refs --- backup.ps1 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/backup.ps1 b/backup.ps1 index 5e629bb..a6b2fc4 100644 --- a/backup.ps1 +++ b/backup.ps1 @@ -16,19 +16,19 @@ Write-Host $running if ( $running ) { Write-Host "Backup already running; $running. Exiting..." if ( $KUMA_ID -ne "" ){ - curl "https://$KUMA_URL/api/push/$KUMA_ID?status=down&msg=Failed&ping=" + curl https://$KUMA_URL/api/push/$KUMA_ID?status=down\&msg=Failed\&ping= } if ( $HEALTHCHECK_UUID -ne "" ) { - curl "https://hc-ping.com/$HEALTHCHECK_UUID/fail" + curl https://hc-ping.com/$HEALTHCHECK_UUID/fail } exit } Write-Host "Not currently running. Continuing..." if ( $KUMA_ID -ne "" ){ - curl "https://$KUMA_URL/api/push/$KUMA_ID?status=up&msg=Running&ping=" + curl https://$KUMA_URL/api/push/$KUMA_ID?status=up\&msg=Running\&ping= } if ( $HEALTHCHECK_UUID -ne "" ) { - curl "https://hc-ping.com/$HEALTHCHECK_UUID/start" + curl https://hc-ping.com/$HEALTHCHECK_UUID/start } if ( $PRE_RUN_SCRIPT ) { . $dir/$PRE_RUN_SCRIPT @@ -39,16 +39,16 @@ if ( $LastExitCode -eq 0 ) { . $dir/$POST_RUN_SCRIPT } if ( $KUMA_ID -ne "" ){ - curl "https://$KUMA_URL/api/push/$KUMA_ID?status=up&msg=Completed&ping=" + curl https://$KUMA_URL/api/push/$KUMA_ID?status=up\&msg=Completed\&ping= } if ( $HEALTHCHECK_UUID -ne "" ) { - curl "https://hc-ping.com/$HEALTHCHECK_UUID" + curl https://hc-ping.com/$HEALTHCHECK_UUID } } else { if ( $KUMA_ID -ne "" ){ - curl "https://$KUMA_URL/api/push/$KUMA_ID?status=down&msg=Failed&ping=" + curl https://$KUMA_URL/api/push/$KUMA_ID?status=down\&msg=Failed\&ping= } if ( $HEALTHCHECK_UUID -ne "" ) { - curl "https://hc-ping.com/$HEALTHCHECK_UUID/fail" + curl https://hc-ping.com/$HEALTHCHECK_UUID/fail } }