Assorted shell and Python scripts

Remove ntfy stuff

Changed files
+2 -16
+2 -16
archivebox_schedule
···
exit 1
fi
-
if test -f "${HOME}/.env_common"; then
-
source "${HOME}/.env_common"
-
fi
-
# Go to archivebox directory and run scheduled command for supplied
-
# feed URL. Send ntfy an error message if it fails.
+
# feed URL.
cd /naspool/archivebox
if ! /home/jas/.local/bin/archivebox add --depth=1 "$1" \
>>/naspool/archivebox/logs/schedule.log; then
-
curl \
-
-H prio:urgent \
-
-H tags:warning \
-
-d "Error running archivebox schedule for $1" \
-
"${NTFY_SERVER}/archivebox_schedule"
-
else
-
curl \
-
-H prio:default \
-
-H tags:incoming_envelope \
-
-d "archivebox schedule succeeded: $1" \
-
"${NTFY_SERVER}/archivebox_schedule"
+
echo "$(date '+%Y-%m-%d %H:%M:%S') ERROR. Exiting."
fi