fixed some curl refs
This commit is contained in:
parent
b5400e3f65
commit
76bea8ee7e
1 changed files with 6 additions and 6 deletions
12
backup.ps1
12
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")
|
||||
|
|
Loading…
Reference in a new issue