summaryrefslogtreecommitdiffstats
path: root/templates/etc/systemd/system/webmap-update@.timer.d
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2025-05-27 11:00:22 +0200
committerGuilhem Moulin <guilhem@fripost.org>2025-05-27 11:02:38 +0200
commit614746b59e6a1af59f453703037452307d5444fe (patch)
tree656f568d4b1d830d40b90c557c359cf211090e1c /templates/etc/systemd/system/webmap-update@.timer.d
parent420f1a59d6cad99549364e699200edd659bb5b2e (diff)
webmap-update@.timer: Add ability to adjust calendar events for individual template units.
Via group variables. For instance mineralrattigheter.zip is updated daily at 04:33 CEST, so we trigger the units after that to avoid being off by a day. (Also that particular unit runs relatively fast and should have terminated by the start of office hours.)
Diffstat (limited to 'templates/etc/systemd/system/webmap-update@.timer.d')
-rw-r--r--templates/etc/systemd/system/webmap-update@.timer.d/override.conf.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/etc/systemd/system/webmap-update@.timer.d/override.conf.j2 b/templates/etc/systemd/system/webmap-update@.timer.d/override.conf.j2
new file mode 100644
index 0000000..795ee20
--- /dev/null
+++ b/templates/etc/systemd/system/webmap-update@.timer.d/override.conf.j2
@@ -0,0 +1,3 @@
+[Timer]
+OnCalendar=
+OnCalendar={{ webmap_layer_groups_update_calendar[item] }}