025971ca1e
- lib/notify.sh: route notify_send to every platform in NOTIFY_PLATFORM (notify.env, default telegram; comma-separated = send to all). New platforms need only a bin/pos-communication-<p> sender implementing 'send <value> [--markdown]' (Matrix/Synapse ready) - pos-communication-telegram: add --markdown as alias for --parse-mode markdown to match the sender contract - lib/common.sh: load_system_env() — shared ~/.config/linux_post_install/ system.env for pos-system-* tools (env exported > file > default) - pos-system-health/backup: load system.env and show effective dynamic values (NOTIFY_PLATFORM, HEALTH_BACKUP_MAX_AGE_DAYS, BACKUP_SERVICE_ROOTS) in --help - config/system.env + config/notify.env templates copied by postinstall - systemd/pos-health.service: EnvironmentFile for both configs so the daily digest honors them
9 lines
375 B
Bash
9 lines
375 B
Bash
# ~/.config/linux_post_install/notify.env — alerting platform selection
|
|
#
|
|
# Comma-separated list of platforms that lib/notify.sh delivers to (all of
|
|
# them). Each platform must have a bin/pos-communication-<platform> tool that
|
|
# implements the sender contract:
|
|
# pos-communication-<platform> send <value> [--markdown]
|
|
# Default: telegram
|
|
#NOTIFY_PLATFORM=telegram,matrix
|