diff options
author | Aleksander Machniak <machniak@kolabsys.com> | 2019-05-28 14:32:48 +0200 |
---|---|---|
committer | Aleksander Machniak <machniak@kolabsys.com> | 2019-05-28 14:32:48 +0200 |
commit | 5a60e0c9e6576a4f9911c1eba87903bb2522831e (patch) | |
tree | 140eb2fe86a4918fe15781f282e1e6cec1d91661 /pykolab/setup | |
parent | 4db1d5e189b8b07f06092acbef623a3a0c2968ee (diff) | |
download | pykolab-5a60e0c9e6576a4f9911c1eba87903bb2522831e.tar.gz |
Fix restarting apache2 service on Debian 9 (Bifrost#T163148)
Diffstat (limited to 'pykolab/setup')
-rw-r--r-- | pykolab/setup/setup_syncroton.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pykolab/setup/setup_syncroton.py b/pykolab/setup/setup_syncroton.py index 251c0e1..5b9f915 100644 --- a/pykolab/setup/setup_syncroton.py +++ b/pykolab/setup/setup_syncroton.py @@ -91,6 +91,9 @@ password='%s' if os.path.isfile('/usr/lib/systemd/system/apache2.service'): httpservice = 'apache2.service' + if os.path.isfile('/lib/systemd/system/apache2.service'): # Debian 9 + httpservice = 'apache2.service' + if os.path.isdir('/lib/systemd/system/apache2.service.d'): httpservice = 'apache2.service' |