mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
fix variable not defined
This commit is contained in:
parent
fbe98ca0e1
commit
a8369acfe6
1 changed files with 2 additions and 2 deletions
|
@ -332,7 +332,7 @@ def app_upgrade(app, instance=[], url=None, file=None):
|
|||
os.system('cp -a "'+ app_tmp_folder +'" "'+ app_final_path +'"')
|
||||
|
||||
if is_web:
|
||||
if app_type != 'privileged' and app_type != 'certified':
|
||||
if manifest['type'] != 'privileged' and manifest['type'] != 'certified':
|
||||
os.system('chown -R www-data: "'+ app_final_path +'"')
|
||||
os.system('service apache2 reload')
|
||||
shutil.rmtree(app_final_path + manifest['yunohost']['script_path'])
|
||||
|
@ -545,7 +545,7 @@ def app_install(app, domain, path='/', label=None, mode='private'):
|
|||
os.system('cp -a "'+ app_tmp_folder +'" "'+ app_final_path +'"')
|
||||
|
||||
if is_web:
|
||||
if app_type != 'privileged' and app_type != 'certified':
|
||||
if manifest['type'] != 'privileged' and manifest['type'] != 'certified':
|
||||
os.system('chown -R www-data: "'+ app_final_path +'"')
|
||||
os.system('service apache2 reload')
|
||||
shutil.rmtree(app_final_path + manifest['yunohost']['script_path'])
|
||||
|
|
Loading…
Add table
Reference in a new issue