Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
b5be819872bb
Commit
bdd28549
authored
Apr 03, 2017
by
David Douard
Browse files
[cwctl] add a no-config-update option to the upgrade command (closes #17069607)
--HG-- branch : 3.25
parent
10a18c6c5e10
Changes
1
Hide whitespace changes
Inline
Side-by-side
cubicweb/cwctl.py
View file @
b5be8198
...
...
@@ -690,6 +690,11 @@ class UpgradeInstanceCommand(InstanceCommandFork):
'default'
:
False
,
'help'
:
'only upgrade files on the file system, not the database.'
}),
(
'no-config-update'
,
{
'short'
:
'C'
,
'action'
:
'store_true'
,
'default'
:
False
,
'help'
:
'do NOT update config file if set.'
}),
(
'nostartstop'
,
{
'short'
:
'n'
,
'action'
:
'store_true'
,
'default'
:
False
,
...
...
@@ -768,7 +773,8 @@ given, appropriate sources for migration will be automatically selected \
else
:
print
(
'-> no data migration needed for instance %s.'
%
appid
)
# rewrite main configuration file
mih
.
rewrite_configuration
()
if
not
self
.
config
.
no_config_update
:
mih
.
rewrite_configuration
()
mih
.
shutdown
()
# handle i18n upgrade
if
not
self
.
i18nupgrade
(
config
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment