Commit bdd28549 authored by David Douard's avatar David Douard
Browse files

[cwctl] add a no-config-update option to the upgrade command (closes #17069607)

branch : 3.25
parent 10a18c6c5e10
......@@ -690,6 +690,11 @@ class UpgradeInstanceCommand(InstanceCommandFork):
'default': False,
'help': 'only upgrade files on the file system, not the database.'}),
{'short': 'C', 'action': 'store_true',
'default': False,
'help': 'do NOT update config file if set.'}),
{'short': 'n', 'action' : 'store_true',
'default': False,
......@@ -768,6 +773,7 @@ given, appropriate sources for migration will be automatically selected \
print('-> no data migration needed for instance %s.' % appid)
# rewrite main configuration file
if not self.config.no_config_update:
# handle i18n upgrade
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment