diff --git a/backup.sh b/backup.sh index a1b3f97..29a638e 100755 --- a/backup.sh +++ b/backup.sh @@ -14,19 +14,19 @@ running=$(pgrep -f "$BACKUP_CMD") if [[ $running ]]; then echo "Backup alreadying running : $running. Exiting..." if [[ $HEALTHCHECK_UUID != "" ]]; then - curl "https://hc-ping.com/$HEALTHCHECK_UUID/fail" + curl -s "https://hc-ping.com/$HEALTHCHECK_UUID/fail" fi if [[ $KUMA_ID != "" ]]; then - curl "https://$KUMA_URL/api/push/$KUMA_ID?status=down&msg=Failed&ping=" + curl -s "https://$KUMA_URL/api/push/$KUMA_ID?status=down&msg=Failed&ping=" fi exit fi echo "Not currently running. Continuing..." if [[ $HEALTHCHECK_UUID != "" ]]; then - curl "https://hc-ping.com/$HEALTHCHECK_UUID/start" + curl -s "https://hc-ping.com/$HEALTHCHECK_UUID/start" fi if [[ $KUMA_ID != "" ]]; then - curl "https://$KUMA_URL/api/push/$KUMA_ID?status=up&msg=Running&ping=" + curl -s "https://$KUMA_URL/api/push/$KUMA_ID?status=up&msg=Running&ping=" fi if [[ $PRE_RUN_SCRIPT ]]; then $dir/$PRE_RUN_SCRIPT @@ -37,16 +37,16 @@ if [[ $? == 0 ]]; then $dir/$POST_RUN_SCRIPT fi if [[ $HEALTHCHECK_UUID != "" ]]; then - curl "https://hc-ping.com/$HEALTHCHECK_UUID" + curl -s "https://hc-ping.com/$HEALTHCHECK_UUID" fi if [[ $KUMA_ID != "" ]]; then - curl "https://$KUMA_URL/api/push/$KUMA_ID?status=up&msg=Completed&ping=" + curl -s "https://$KUMA_URL/api/push/$KUMA_ID?status=up&msg=Completed&ping=" fi else if [[ $HEALTHCHECK_UUID != "" ]]; then - curl "https://hc-ping.com/$HEALTHCHECK_UUID/fail" + curl -s "https://hc-ping.com/$HEALTHCHECK_UUID/fail" fi if [[ $KUMA_ID != "" ]]; then - curl "https://$KUMA_URL/api/push/$KUMA_ID?status=down&msg=Failed&ping=" + curl -s "https://$KUMA_URL/api/push/$KUMA_ID?status=down&msg=Failed&ping=" fi fi