Fixes service update-rc.d functionality on debian
This commit is contained in:
parent
88b9bc5de8
commit
1f39663a97
1 changed files with 6 additions and 0 deletions
|
@ -633,6 +633,12 @@ class LinuxService(Service):
|
|||
self.changed = True
|
||||
break
|
||||
|
||||
# Debian compatibility
|
||||
for line in err.splitlines():
|
||||
if self.enable and line.find('no runlevel symlinks to modify') != -1:
|
||||
self.changed = True
|
||||
break
|
||||
|
||||
if self.module.check_mode:
|
||||
self.module.exit_json(changed=self.changed)
|
||||
|
||||
|
|
Loading…
Reference in a new issue