mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] copy config_panel.json on install/upgrade
This commit is contained in:
parent
27dfd6af6e
commit
67ba031eab
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('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))
|
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, "config_panel.json")):
|
||||||
|
os.system('cp -R %s/config_panel.json %s' % (extracted_app_folder, app_setting_path))
|
||||||
|
|
||||||
if os.path.exists(os.path.join(extracted_app_folder, "conf")):
|
if os.path.exists(os.path.join(extracted_app_folder, "conf")):
|
||||||
os.system('cp -R %s/conf %s' % (extracted_app_folder, app_setting_path))
|
os.system('cp -R %s/conf %s' % (extracted_app_folder, app_setting_path))
|
||||||
|
|
||||||
|
@ -758,6 +761,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 %s/manifest.json %s' % (extracted_app_folder, app_setting_path))
|
||||||
os.system('cp -R %s/scripts %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, "config_panel.json")):
|
||||||
|
os.system('cp -R %s/config_panel.json %s' % (extracted_app_folder, app_setting_path))
|
||||||
|
|
||||||
if os.path.exists(os.path.join(extracted_app_folder, "conf")):
|
if os.path.exists(os.path.join(extracted_app_folder, "conf")):
|
||||||
os.system('cp -R %s/conf %s' % (extracted_app_folder, app_setting_path))
|
os.system('cp -R %s/conf %s' % (extracted_app_folder, app_setting_path))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue