Files
Linux_post_install/config/system.env
T
Your Name 025971ca1e feat: multi-platform alerting + shared system.env config with dynamic help values
- 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
2026-08-06 02:37:56 -04:00

13 lines
562 B
Bash

# ~/.config/linux_post_install/system.env — shared "system" tool config
#
# Loaded by `pos system health` and `pos system backup` via load_system_env()
# with precedence: already-exported environment > this file > defaults.
# Commented lines are defaults — uncomment to override.
# Roots scanned by `pos system backup --service` and by the backup-age check
# in `pos system health`. Default: /srv $HOME/srv
#BACKUP_SERVICE_ROOTS=/srv /home/you/srv
# Max backup age in days before `pos system health` raises a WARN. Default: 2
#HEALTH_BACKUP_MAX_AGE_DAYS=3