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 ...@@ -18,7 +18,7 @@ EOF
fi fi
upgrade() { upgrade() {
echo "upgrading instance" 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 gen-static-datadir $CW_INSTANCE
cubicweb-ctl i18ninstance $CW_INSTANCE cubicweb-ctl i18ninstance $CW_INSTANCE
} }
...@@ -27,7 +27,8 @@ case "$1" in ...@@ -27,7 +27,8 @@ case "$1" in
exec uwsgi --ini /etc/uwsgi/uwsgi.ini exec uwsgi --ini /etc/uwsgi/uwsgi.ini
;; ;;
upgrade) upgrade)
upgrade shift
upgrade "$@"
;; ;;
db-create) db-create)
exec cubicweb-ctl db-create --automatic $CW_INSTANCE exec cubicweb-ctl db-create --automatic $CW_INSTANCE
...@@ -40,7 +41,8 @@ Usage: ...@@ -40,7 +41,8 @@ Usage:
start upgrade and start instance start upgrade and start instance
db-create initialize database db-create initialize database
upgrade upgrade instance upgrade [OPTIONS] upgrade instance (extra options are passed to
cubicweb-ctl upgrade <instance>)
Environment variables: Environment variables:
......
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