Commit ea9a5e29 authored by Denis Laxalde's avatar 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
......@@ -18,7 +18,7 @@ EOF
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 "$@"
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:
Supports Markdown
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