From 76bea8ee7e6492d325be67d529c44ddb14c94853 Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Wed, 13 Mar 2024 17:05:33 +0000 Subject: [PATCH] fixed some curl refs --- backup.ps1 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/backup.ps1 b/backup.ps1 index a0a3b8e..49926c1 100644 --- a/backup.ps1 +++ b/backup.ps1 @@ -3,13 +3,13 @@ $dir = Split-Path $script:MyInvocation.MyCommand.Path . "$dir/env.ps1" if ( $KUMA_ID -ne "" ){ - $RUNNING_URL = https://$KUMA_URL/api/push/$KUMA_ID?status=up"&"msg=Running"&"ping= - $FAILURE_URL = https://$KUMA_URL/api/push/$KUMA_ID?status=down"&"msg=Failed"&"ping= - $SUCCESS_URL = https://$KUMA_URL/api/push/$KUMA_ID?status=up"&"msg=Completed"&"ping= + $RUNNING_URL = "https://$KUMA_URL/api/push/$KUMA_ID?status=up&msg=Running&ping=" + $FAILURE_URL = "https://$KUMA_URL/api/push/$KUMA_ID?status=down&msg=Failed&ping=" + $SUCCESS_URL = "https://$KUMA_URL/api/push/$KUMA_ID?status=up&msg=Completed&ping=" } elseif ( $HEALTHCHECK_UUID -ne "" ) { - $RUNNING_URL = https://hc-ping.com/$HEALTHCHECK_UUID/start - $FAILURE_URL = https://hc-ping.com/$HEALTHCHECK_UUID/fail - $SUCCESS_URL = https://hc-ping.com/$HEALTHCHECK_UUID + $RUNNING_URL = "https://hc-ping.com/$HEALTHCHECK_UUID/start" + $FAILURE_URL = "https://hc-ping.com/$HEALTHCHECK_UUID/fail" + $SUCCESS_URL = "https://hc-ping.com/$HEALTHCHECK_UUID" } Write-Host $RUNNING_URL $DATE = (Get-Date).ToString("yyyy-MM-dd HH:mm:ss")