summaryrefslogtreecommitdiffstats
path: root/base/server/python/pki/server/cli/nuxwdog.py
diff options
context:
space:
mode:
Diffstat (limited to 'base/server/python/pki/server/cli/nuxwdog.py')
-rw-r--r--base/server/python/pki/server/cli/nuxwdog.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/base/server/python/pki/server/cli/nuxwdog.py b/base/server/python/pki/server/cli/nuxwdog.py
index ca9c7c39b..afbd438ff 100644
--- a/base/server/python/pki/server/cli/nuxwdog.py
+++ b/base/server/python/pki/server/cli/nuxwdog.py
@@ -222,8 +222,7 @@ class NuxwdogEnableCLI(pki.cli.CLI):
'/etc/systemd/system/pki-tomcatd.target.wants',
old_systemd_unit_file)
- new_systemd_unit_file = ('pki-tomcatd-nuxwdog@' + instance.name
- + '.service')
+ new_systemd_unit_file = 'pki-tomcatd-nuxwdog@%s.service' % instance.name
new_systemd_link = os.path.join(
'/etc/systemd/system/pki-tomcatd-nuxwdog.target.wants',
new_systemd_unit_file)
@@ -373,8 +372,7 @@ class NuxwdogDisableCLI(pki.cli.CLI):
os.chown(filename, instance.uid, instance.gid)
def change_systemd_links(self, instance):
- old_systemd_unit_file = ('pki-tomcatd-nuxwdog@' + instance.name
- + '.service')
+ old_systemd_unit_file = 'pki-tomcatd-nuxwdog@%s.service' % instance.name
old_systemd_link = os.path.join(
'/etc/systemd/system/pki-tomcatd-nuxwdog.target.wants',
old_systemd_unit_file)