diff --git a/src/yunohost/app.py b/src/yunohost/app.py index 044b81632..c2ddc3a7c 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -487,7 +487,7 @@ def app_change_url(auth, app, domain, path): os.system('chmod +x %s' % os.path.join(os.path.join(APP_TMP_FOLDER, "scripts", "change_url"))) # XXX journal - if hook_exec(os.path.join(APP_TMP_FOLDER, 'scripts/change_url'), args=args_list, env=env_dict) != 0: + if hook_exec(os.path.join(APP_TMP_FOLDER, 'scripts/change_url'), args=args_list, env=env_dict, user="root") != 0: logger.error("Failed to change '%s' url." % app) # restore values modified by app_checkurl