Skip to content
Snippets Groups Projects
Verified Commit f5a87ab5 authored by Vincent Sellier's avatar Vincent Sellier
Browse files

apps/web: Add a generic parameter to launch django admin command

To not have to evolve the image each time a new command is added

Related to sysadm-environment#5391
parent 7c95271f
No related branches found
No related tags found
No related merge requests found
...@@ -17,11 +17,20 @@ case "$1" in ...@@ -17,11 +17,20 @@ case "$1" in
--settings=${DJANGO_SETTINGS_MODULE} 2>&1' --settings=${DJANGO_SETTINGS_MODULE} 2>&1'
;; ;;
"sync-mailmaps") "sync-mailmaps")
echo Deprecated use django-admin instead
shift shift
echo "django-admin sync-mailmaps routine" echo "django-admin sync-mailmaps routine"
date date
exec sh -c "django-admin sync_mailmaps --perform '$@'" exec sh -c "django-admin sync_mailmaps --perform '$@'"
;; ;;
"django-admin")
shift
COMMAND=$1
shift
echo "django-admin ${COMMAND} routine"
date
exec sh -c "django-admin ${COMMAND} --perform '$@'"
;;
*) *)
EXTRA_CLI_FLAGS="" EXTRA_CLI_FLAGS=""
if [ ! -z "${SWH_LOG_CONFIG_JSON}" ]; then if [ ! -z "${SWH_LOG_CONFIG_JSON}" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment