From 9af9efd6504ea8b890563b4bc7fd88f3c25db9b6 Mon Sep 17 00:00:00 2001 From: JocelynDelalande Date: Mon, 28 Oct 2024 19:11:14 +0100 Subject: [PATCH] Fix #119 : update run frequency with panel after install Option was honored at install-time but not at config-panel-time --- scripts/config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/config b/scripts/config index edb17a7..c6f974b 100644 --- a/scripts/config +++ b/scripts/config @@ -87,6 +87,11 @@ set__conf() { fi } +set__on_calendar() { + ynh_write_var_in_file --file="/etc/systemd/system/$app.timer" --key=OnCalendar --value="$on_calendar" + sudo systemctl daemon-reload +} + #================================================= # GENERIC FINALIZATION #=================================================