Fix conf dir clean-up

This commit is contained in:
Jimmy Monin 2018-01-09 23:01:19 +01:00
parent aea13bc3e8
commit 20f0e9a40c

View file

@ -622,7 +622,7 @@ def app_upgrade(auth, app=[], url=None, file=None):
json.dump(status, f) json.dump(status, f)
# Replace scripts and manifest and conf (if exists) # Replace scripts and manifest and conf (if exists)
os.system('rm -rf "%s/scripts" "%s/manifest.json %/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, "conf")): if os.path.exists(os.path.join(extracted_app_folder, "conf")):