From 2e11c2cb19b26a56a098d0b499dd1bf50b81595d Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Wed, 13 Mar 2024 11:25:02 +0000 Subject: [PATCH] changed curl to silent mode --- backup.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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