Fully execute the regen conf as root

This commit is contained in:
Alexandre Aubin 2017-07-07 23:50:33 +00:00 committed by root
parent 14159a490e
commit 77c7f0e639

View file

@ -321,7 +321,7 @@ def service_regen_conf(names=[], with_diff=False, force=False, dry_run=False,
def _pre_call(name, priority, path, args):
# create the pending conf directory for the service
service_pending_path = os.path.join(PENDING_CONF_DIR, name)
filesystem.mkdir(service_pending_path, 0755, True, uid='admin')
filesystem.mkdir(service_pending_path, 0755, True, uid='root')
# return the arguments to pass to the script
return pre_args + [service_pending_path, ]
pre_result = hook_callback('conf_regen', names, pre_callback=_pre_call)