From 77c7f0e6394e984b195cd4b1723f5e010f7529dc Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 7 Jul 2017 23:50:33 +0000 Subject: [PATCH] Fully execute the regen conf as root --- src/yunohost/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yunohost/service.py b/src/yunohost/service.py index 2ea953873..517ab21f4 100644 --- a/src/yunohost/service.py +++ b/src/yunohost/service.py @@ -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)