mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Run change_url scripts as root as a matter of homogeneity (#329)
This commit is contained in:
parent
f3a247442f
commit
baf1d44c1f
1 changed files with 1 additions and 1 deletions
|
@ -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")))
|
os.system('chmod +x %s' % os.path.join(os.path.join(APP_TMP_FOLDER, "scripts", "change_url")))
|
||||||
|
|
||||||
# XXX journal
|
# 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)
|
logger.error("Failed to change '%s' url." % app)
|
||||||
|
|
||||||
# restore values modified by app_checkurl
|
# restore values modified by app_checkurl
|
||||||
|
|
Loading…
Add table
Reference in a new issue