Skip to content

Commit

Permalink
Fix systemd unit path identification for debian based systems
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudveron committed Sep 14, 2018
1 parent aba4601 commit 3f66602
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/postinstall
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ def _activate_systemd(systemdsvc):
'/usr/lib/systemd/system/',
]

if not os.path.islink('/lib') and os.path.isdir('/lib/systemd/system'):
systemd_unit_path = ['/lib/systemd/system']

installed = False
for path in systemd_unit_path:
if os.path.exists(os.path.dirname(path)):
Expand Down

0 comments on commit 3f66602

Please sign in to comment.