Add force option in upgrade script

This commit is contained in:
Josué Tille 2019-12-30 14:43:10 +01:00
parent 9f81d77693
commit ebb492fd1e
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF
2 changed files with 5 additions and 1 deletions

View file

@ -640,6 +640,10 @@ app:
-f:
full: --file
help: Folder or tarball for upgrade
-F:
full: --force
help: Force the update, even though the app is up to date
action: store_true
### app_change_url()
change-url:

View file

@ -410,7 +410,7 @@ def app_change_url(operation_logger, app, domain, path):
hook_callback('post_app_change_url', args=args_list, env=env_dict)
def app_upgrade(app=[], url=None, file=None):
def app_upgrade(app=[], url=None, file=None, force=False):
"""
Upgrade app