fixed some curl refs
This commit is contained in:
parent
1a467da921
commit
39db9b3ebe
1 changed files with 8 additions and 8 deletions
16
backup.ps1
16
backup.ps1
|
@ -16,19 +16,19 @@ Write-Host $running
|
||||||
if ( $running ) {
|
if ( $running ) {
|
||||||
Write-Host "Backup already running; $running. Exiting..."
|
Write-Host "Backup already running; $running. Exiting..."
|
||||||
if ( $KUMA_ID -ne "" ){
|
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 "" ) {
|
if ( $HEALTHCHECK_UUID -ne "" ) {
|
||||||
curl "https://hc-ping.com/$HEALTHCHECK_UUID/fail"
|
curl https://hc-ping.com/$HEALTHCHECK_UUID/fail
|
||||||
}
|
}
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
Write-Host "Not currently running. Continuing..."
|
Write-Host "Not currently running. Continuing..."
|
||||||
if ( $KUMA_ID -ne "" ){
|
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 "" ) {
|
if ( $HEALTHCHECK_UUID -ne "" ) {
|
||||||
curl "https://hc-ping.com/$HEALTHCHECK_UUID/start"
|
curl https://hc-ping.com/$HEALTHCHECK_UUID/start
|
||||||
}
|
}
|
||||||
if ( $PRE_RUN_SCRIPT ) {
|
if ( $PRE_RUN_SCRIPT ) {
|
||||||
. $dir/$PRE_RUN_SCRIPT
|
. $dir/$PRE_RUN_SCRIPT
|
||||||
|
@ -39,16 +39,16 @@ if ( $LastExitCode -eq 0 ) {
|
||||||
. $dir/$POST_RUN_SCRIPT
|
. $dir/$POST_RUN_SCRIPT
|
||||||
}
|
}
|
||||||
if ( $KUMA_ID -ne "" ){
|
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 "" ) {
|
if ( $HEALTHCHECK_UUID -ne "" ) {
|
||||||
curl "https://hc-ping.com/$HEALTHCHECK_UUID"
|
curl https://hc-ping.com/$HEALTHCHECK_UUID
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ( $KUMA_ID -ne "" ){
|
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 "" ) {
|
if ( $HEALTHCHECK_UUID -ne "" ) {
|
||||||
curl "https://hc-ping.com/$HEALTHCHECK_UUID/fail"
|
curl https://hc-ping.com/$HEALTHCHECK_UUID/fail
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue