Univention Bugzilla – Attachment #4940: Add option to not disable apache2 for bug #29810
return out, err
@contextmanager
def no_umc_restart(self):
def no_umc_restart(self, exclude_apache=False):
self._shell_command(CMD_DISABLE_EXEC)
if exclude_apache:
cmd_disable_exec = [CMD_DISABLE_EXEC, '--exclude-apache']
else:
cmd_disable_exec = CMD_DISABLE_EXEC
self._shell_command(cmd_disable_exec)
try:
yield
finally: