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
docker-cubicweb
Commits
94338f7eb429
Commit
ea9a5e29
authored
Nov 22, 2019
by
Denis Laxalde
Browse files
Pass extra arguments of "upgrade" command to "cubicweb-ctl upgrade"
This allows one, e.g., to request a backup.
parent
10e828efccf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
entrypoint.sh
View file @
94338f7e
...
...
@@ -18,7 +18,7 @@ EOF
fi
upgrade
()
{
echo
"upgrading instance"
cubicweb-ctl upgrade
--backup-db
=
no
--force
--verbosity
=
0
$CW_INSTANCE
cubicweb-ctl upgrade
"
$@
"
$CW_INSTANCE
cubicweb-ctl gen-static-datadir
$CW_INSTANCE
cubicweb-ctl i18ninstance
$CW_INSTANCE
}
...
...
@@ -27,7 +27,8 @@ case "$1" in
exec
uwsgi
--ini
/etc/uwsgi/uwsgi.ini
;;
upgrade
)
upgrade
shift
upgrade
"
$@
"
;;
db-create
)
exec
cubicweb-ctl db-create
--automatic
$CW_INSTANCE
...
...
@@ -40,7 +41,8 @@ Usage:
start upgrade and start instance
db-create initialize database
upgrade upgrade instance
upgrade [OPTIONS] upgrade instance (extra options are passed to
cubicweb-ctl upgrade <instance>)
Environment variables:
...
...
Write
Preview
Supports
Markdown
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