diff --git a/hosts/mainframe/bin/movie_recs_notify b/hosts/mainframe/bin/movie_recs_notify index 5fd9b33..abfb14d 100755 --- a/hosts/mainframe/bin/movie_recs_notify +++ b/hosts/mainframe/bin/movie_recs_notify @@ -16,7 +16,12 @@ NTFY = "https://ntfy.rcjohnstone.com/movies" # credential. Mirrored from the rbw entry `ntfy-bot`; rbw is the source of # truth. Kept in a 0600 file because this runs unattended from a timer. NTFY_ENV = os.path.expanduser("~/.config/ntfy/publish.env") -RECS = "/home/connor/.local/bin/movie_recs" +# Resolved next to this script, not via ~/.local/bin. That directory used to +# be a dotbot link into hosts//bin; it is now a real directory owned by +# the package managers (meta/base.conf.yaml), so the movie_recs link vanished +# and every run since died with FileNotFoundError. The sibling path is what +# the unit already uses for this script itself and cannot drift from it. +RECS = os.path.join(os.path.dirname(os.path.abspath(__file__)), "movie_recs") COUNT = "10"