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 if [[ $running ]]; then
echo "Backup alreadying running : $running. Exiting..." echo "Backup alreadying running : $running. Exiting..."
if [[ $HEALTHCHECK_UUID != "" ]]; then if [[ $HEALTHCHECK_UUID != "" ]]; then
curl "https://hc-ping.com/$HEALTHCHECK_UUID/fail" curl -s "https://hc-ping.com/$HEALTHCHECK_UUID/fail"
fi fi
if [[ $KUMA_ID != "" ]]; then 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
exit exit
fi fi
echo "Not currently running. Continuing..." echo "Not currently running. Continuing..."
if [[ $HEALTHCHECK_UUID != "" ]]; then if [[ $HEALTHCHECK_UUID != "" ]]; then
curl "https://hc-ping.com/$HEALTHCHECK_UUID/start" curl -s "https://hc-ping.com/$HEALTHCHECK_UUID/start"
fi fi
if [[ $KUMA_ID != "" ]]; then 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 fi
if [[ $PRE_RUN_SCRIPT ]]; then if [[ $PRE_RUN_SCRIPT ]]; then
$dir/$PRE_RUN_SCRIPT $dir/$PRE_RUN_SCRIPT
@ -37,16 +37,16 @@ if [[ $? == 0 ]]; then
$dir/$POST_RUN_SCRIPT $dir/$POST_RUN_SCRIPT
fi fi
if [[ $HEALTHCHECK_UUID != "" ]]; then if [[ $HEALTHCHECK_UUID != "" ]]; then
curl "https://hc-ping.com/$HEALTHCHECK_UUID" curl -s "https://hc-ping.com/$HEALTHCHECK_UUID"
fi fi
if [[ $KUMA_ID != "" ]]; then 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 fi
else else
if [[ $HEALTHCHECK_UUID != "" ]]; then if [[ $HEALTHCHECK_UUID != "" ]]; then
curl "https://hc-ping.com/$HEALTHCHECK_UUID/fail" curl -s "https://hc-ping.com/$HEALTHCHECK_UUID/fail"
fi fi
if [[ $KUMA_ID != "" ]]; then 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
fi fi