mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Forward env. var to scripts
This commit is contained in:
parent
c655d10c2f
commit
03779fa7c3
1 changed files with 1 additions and 1 deletions
|
@ -387,7 +387,7 @@ def app_upgrade(auth, app=[], url=None, file=None):
|
|||
|
||||
# Execute App upgrade script
|
||||
os.system('chown -hR admin: %s' % install_tmp)
|
||||
if hook_exec(app_tmp_folder +'/scripts/upgrade', args_list) != 0:
|
||||
if hook_exec(app_tmp_folder +'/scripts/upgrade', args=args_list, env=env_dict) != 0:
|
||||
logger.error(m18n.n('app_upgrade_failed', app=app_id))
|
||||
else:
|
||||
now = int(time.time())
|
||||
|
|
Loading…
Add table
Reference in a new issue