fix: update version.txt for 1.26.2 release
This commit is contained in:
parent
6d5adeef9c
commit
fb68a1b011
8 changed files with 691 additions and 0 deletions
40
host-agent/run-mail-deliv-probe.sh
Executable file
40
host-agent/run-mail-deliv-probe.sh
Executable file
|
|
@ -0,0 +1,40 @@
|
|||
#!/usr/bin/env bash
|
||||
# Regular mon* inbox-vs-spam probe (Taler deliverability sinks).
|
||||
# Timer: taler-monitoring-mail-deliv.timer (default every 6h).
|
||||
#
|
||||
# Loads secrets.env if present. Does NOT print passwords.
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
if [[ -d /home/hernani/src/taler-monitoring ]]; then
|
||||
ROOT=/home/hernani/src/taler-monitoring
|
||||
fi
|
||||
cd "$ROOT"
|
||||
|
||||
# secrets (gitignored)
|
||||
for f in \
|
||||
"${TALER_MONITORING_ENV:-}" \
|
||||
"$HOME/.config/taler-monitoring/env" \
|
||||
"$ROOT/secrets.env" \
|
||||
"$HOME/src/taler-monitoring-env/secrets.env"
|
||||
do
|
||||
[[ -n "$f" && -f "$f" ]] || continue
|
||||
set -a
|
||||
# shellcheck disable=SC1090
|
||||
source "$f"
|
||||
set +a
|
||||
break
|
||||
done
|
||||
|
||||
export MAIL_DELIV_PROBE_FROM="${MAIL_DELIV_PROBE_FROM:-mon001@hacktivism.ch}"
|
||||
export MAIL_DELIV_PROBE_TO="${MAIL_DELIV_PROBE_TO:-mon001@hacktivism.ch mon002@hacktivism.ch mon003@hacktivism.ch}"
|
||||
export MAIL_DELIV_PROBE_SMTP="${MAIL_DELIV_PROBE_SMTP:-mail.cyon.ch:587}"
|
||||
export MAIL_DELIV_IMAP_HOST="${MAIL_DELIV_IMAP_HOST:-mail.cyon.ch}"
|
||||
export MAIL_DELIV_PROBE_WAIT_S="${MAIL_DELIV_PROBE_WAIT_S:-45}"
|
||||
export MAIL_DELIV_PROBE_ALERT_TO="${MAIL_DELIV_PROBE_ALERT_TO:-hernani+mon@taler-systems.com hernani+mon@vecirex.net vecirex+mon@icloud.com fdold+mon@taler.net}"
|
||||
|
||||
if [[ -z "${MAIL_DELIV_IMAP_PASS:-}${MAIL_DELIV_ALERT_PASS:-}" ]]; then
|
||||
echo "run-mail-deliv-probe: no MAIL_DELIV_IMAP_PASS in env/secrets.env" >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
exec python3 "$ROOT/mail_deliv_probe.py"
|
||||
17
host-agent/taler-monitoring-mail-deliv.service
Normal file
17
host-agent/taler-monitoring-mail-deliv.service
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
[Unit]
|
||||
Description=taler-monitoring mon* inbox-vs-spam mail probe
|
||||
Documentation=file:%h/src/taler-monitoring/check_mail_deliverability.sh
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
WorkingDirectory=%h/src/taler-monitoring
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
# Prefer secrets via EnvironmentFile if present (create on host; never commit)
|
||||
EnvironmentFile=-%h/.config/taler-monitoring/env
|
||||
EnvironmentFile=-%h/src/taler-monitoring/secrets.env
|
||||
ExecStart=%h/src/taler-monitoring/host-agent/run-mail-deliv-probe.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
12
host-agent/taler-monitoring-mail-deliv.timer
Normal file
12
host-agent/taler-monitoring-mail-deliv.timer
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=taler-monitoring mon* mail probe every 6h
|
||||
Documentation=file:%h/src/taler-monitoring/host-agent/run-mail-deliv-probe.sh
|
||||
|
||||
[Timer]
|
||||
OnBootSec=20min
|
||||
OnUnitActiveSec=6h
|
||||
Persistent=true
|
||||
RandomizedDelaySec=10min
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in a new issue