From 2ddcc62973811537ccb88e6168208252ef0ae93e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20M=C3=BCller?= Date: Sun, 2 Apr 2023 14:51:17 +0700 Subject: [PATCH] [util-yaml] add timers support --- lib/util-yaml.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/util-yaml.sh b/lib/util-yaml.sh index 7c1e3c2..42625ea 100644 --- a/lib/util-yaml.sh +++ b/lib/util-yaml.sh @@ -82,6 +82,12 @@ write_services_conf(){ echo ' mandatory: false' >> "$conf" echo '' >> "$conf" done + echo 'timers:' > "$conf" + for s in ${enable_systemd_timers[@]}; do + echo " - name: $s" >> "$conf" + echo ' mandatory: false' >> "$conf" + echo '' >> "$conf" + done echo 'targets:' >> "$conf" echo ' - name: "graphical"' >> "$conf" echo ' mandatory: true' >> "$conf"