diff options
-rwxr-xr-x | bin/taler-deployment | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/taler-deployment b/bin/taler-deployment index 8f03c8e..1bb85df 100755 --- a/bin/taler-deployment +++ b/bin/taler-deployment @@ -626,6 +626,13 @@ def setup_service(systemd_unit): sc_path.mkdir(exist_ok=True,parents=True) sc_unit = Path.home() / "deployment" / "systemd-services" / systemd_unit copy(sc_unit, sc_path) + + # If a timer got just installed, the related service + # file needs to be installed now. + split_filename = systemd_unit.split(".") + if "timer" == split_filename[-1]: + copy(Path.home() / "deployment" / "systemd-services" / split_filename[0] + ".service", sc_path) + subprocess.run( [ "systemctl", |