fixed some curl refs

This commit is contained in:
Paul Wilde 2024-03-13 11:30:55 +00:00
parent 3d063c4912
commit 1a467da921

View file

@ -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"
}
}