fixed some curl refs
This commit is contained in:
parent
c948ade688
commit
b5400e3f65
1 changed files with 2 additions and 2 deletions
|
@ -6,12 +6,12 @@ if ( $KUMA_ID -ne "" ){
|
||||||
$RUNNING_URL = https://$KUMA_URL/api/push/$KUMA_ID?status=up"&"msg=Running"&"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=
|
$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=
|
$SUCCESS_URL = https://$KUMA_URL/api/push/$KUMA_ID?status=up"&"msg=Completed"&"ping=
|
||||||
} else if ( $HEALTHCHECK_UUID -ne "" ) {
|
} elseif ( $HEALTHCHECK_UUID -ne "" ) {
|
||||||
$RUNNING_URL = https://hc-ping.com/$HEALTHCHECK_UUID/start
|
$RUNNING_URL = https://hc-ping.com/$HEALTHCHECK_UUID/start
|
||||||
$FAILURE_URL = https://hc-ping.com/$HEALTHCHECK_UUID/fail
|
$FAILURE_URL = https://hc-ping.com/$HEALTHCHECK_UUID/fail
|
||||||
$SUCCESS_URL = https://hc-ping.com/$HEALTHCHECK_UUID
|
$SUCCESS_URL = https://hc-ping.com/$HEALTHCHECK_UUID
|
||||||
}
|
}
|
||||||
Write-Host $URL
|
Write-Host $RUNNING_URL
|
||||||
$DATE = (Get-Date).ToString("yyyy-MM-dd HH:mm:ss")
|
$DATE = (Get-Date).ToString("yyyy-MM-dd HH:mm:ss")
|
||||||
Write-Host "Backup $NAME at $DATE"
|
Write-Host "Backup $NAME at $DATE"
|
||||||
$BACKUP_CMD="restic backup $BACKUP_DIR"
|
$BACKUP_CMD="restic backup $BACKUP_DIR"
|
||||||
|
|
Loading…
Reference in a new issue