gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-deployment] branch master updated: install .service after .timer


From: gnunet
Subject: [taler-deployment] branch master updated: install .service after .timer
Date: Mon, 01 Mar 2021 11:42:59 +0100

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new 2df6be1  install .service after .timer
2df6be1 is described below

commit 2df6be1f400911a5bd143b5c0eb0a8473c901f81
Author: MS <ms@taler.net>
AuthorDate: Mon Mar 1 11:42:52 2021 +0100

    install .service after .timer
---
 bin/taler-deployment | 7 +++++++
 1 file changed, 7 insertions(+)

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",

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]