changed curl to silent mode

This commit is contained in:
Paul Wilde 2024-03-13 11:25:02 +00:00
parent 1c3b8ca855
commit 2e11c2cb19

View file

@ -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