From 0da75217e4213ef8a42ce1558886b30afeb47af9 Mon Sep 17 00:00:00 2001 From: Mark Eaton Date: Sun, 22 Feb 2026 16:25:24 -0500 Subject: [PATCH] remove unneccessary lines --- notify/notify-gitea-failure@.service | 3 ++- notify/notify-gitea.sh | 5 ++++- saints/saints.service | 2 -- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/notify/notify-gitea-failure@.service b/notify/notify-gitea-failure@.service index d2bb5ba..7f040ee 100644 --- a/notify/notify-gitea-failure@.service +++ b/notify/notify-gitea-failure@.service @@ -4,5 +4,6 @@ Description=Send Gitea failure notification for %i [Service] Type=oneshot ExecStart=/usr/local/bin/notify-gitea.sh %i failure -# Load webhook URL from environment file +# Load webhook URL: system-wide config first, user config overrides if present EnvironmentFile=-/etc/notify-gitea.conf +EnvironmentFile=-%h/.config/notify-gitea.env diff --git a/notify/notify-gitea.sh b/notify/notify-gitea.sh index 4e201e0..3fa208b 100755 --- a/notify/notify-gitea.sh +++ b/notify/notify-gitea.sh @@ -19,10 +19,13 @@ STATUS="${2:-unknown}" HOSTNAME=$(hostname) TIMESTAMP=$(date '+%Y-%m-%d %H:%M:%S %Z') -# Load config from file if not set +# Load config from file if not set (system-wide, then user override) if [[ -f /etc/notify-gitea.conf ]]; then source /etc/notify-gitea.conf fi +if [[ -f "${HOME}/.config/notify-gitea.env" ]]; then + source "${HOME}/.config/notify-gitea.env" +fi # Validate required variables for var in GITEA_URL GITEA_TOKEN GITEA_OWNER GITEA_REPO; do diff --git a/saints/saints.service b/saints/saints.service index 94b1408..ce33cd0 100644 --- a/saints/saints.service +++ b/saints/saints.service @@ -9,8 +9,6 @@ [Unit] Description=Run get_saint_of_the_day.py (profile stats updater) OnFailure=notify-gitea-failure@%n.service -StartLimitBurst=5 -StartLimitIntervalSec=43200 [Service] Type=oneshot