mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] store actions.json en install/upgrade
This commit is contained in:
parent
f35e3ef055
commit
9cefc60161
1 changed files with 6 additions and 0 deletions
|
@ -641,6 +641,9 @@ def app_upgrade(auth, app=[], url=None, file=None):
|
|||
os.system('rm -rf "%s/scripts" "%s/manifest.json %s/conf"' % (app_setting_path, app_setting_path, app_setting_path))
|
||||
os.system('mv "%s/manifest.json" "%s/scripts" %s' % (extracted_app_folder, extracted_app_folder, app_setting_path))
|
||||
|
||||
if os.path.exists(os.path.join(extracted_app_folder, "actions.json")):
|
||||
os.system('cp -R %s/actions.json %s' % (extracted_app_folder, app_setting_path))
|
||||
|
||||
if os.path.exists(os.path.join(extracted_app_folder, "config_panel.json")):
|
||||
os.system('cp -R %s/config_panel.json %s' % (extracted_app_folder, app_setting_path))
|
||||
|
||||
|
@ -761,6 +764,9 @@ def app_install(auth, app, label=None, args=None, no_remove_on_failure=False):
|
|||
os.system('cp %s/manifest.json %s' % (extracted_app_folder, app_setting_path))
|
||||
os.system('cp -R %s/scripts %s' % (extracted_app_folder, app_setting_path))
|
||||
|
||||
if os.path.exists(os.path.join(extracted_app_folder, "actions.json")):
|
||||
os.system('cp -R %s/actions.json %s' % (extracted_app_folder, app_setting_path))
|
||||
|
||||
if os.path.exists(os.path.join(extracted_app_folder, "config_panel.json")):
|
||||
os.system('cp -R %s/config_panel.json %s' % (extracted_app_folder, app_setting_path))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue