Assorted shell and Python scripts

Use SERVER_IP

Changed files
+3 -3
+3 -3
archivebox_schedule
···
fi
# Get Headnet IP address for desktop
-
DESKTOP_IP=$(sudo tailscale status | grep "desktop" | awk '{print $1}')
+
SERVER_IP=$(sudo tailscale status | grep "dietpi" | awk '{print $1}')
# Go to archivebox directory and run scheduled command for supplied
# feed URL. Send ntfy an error message if it fails.
···
-H prio:urgent \
-H tags:warning \
-d "Error running archivebox schedule for $1" \
-
"http://${DESKTOP_IP}:8080/archivebox_schedule"
+
"http://${SERVER_IP}:8080/archivebox_schedule"
else
curl \
-H prio:default \
-H tags:incoming_envelope \
-d "archivebox schedule succeeded: $1" \
-
"http://${DESKTOP_IP}:8080/archivebox_schedule"
+
"http://${SERVER_IP}:8080/archivebox_schedule"
fi