Fix geolocation systemd service

This commit is contained in:
Michael Bradley 2024-04-21 01:48:28 -04:00
parent 1db76530fd
commit 002201bc37

View file

@ -6,7 +6,7 @@ After=network-online.target
[Service]
Type=oneshot
# Using $XDG_STATE_HOME would be preferable, but systemd/sh doesn't play nice with environment variables
ExecStart=/bin/sh -c 'curl "https://ipapi.co/json/" -o "/home/mbradley/.local/state/ip.json"'
ExecStart=/bin/sh -c 'curl "https://ipapi.co/json/" -o "/home/mbradley/.cache/ip.json"'
[Install]
WantedBy=default.target