diff --git a/HISTORY.rst b/HISTORY.rst index d402cf08f1..f19edd83bc 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -151,6 +151,8 @@ - Self-heal statistics results model when multiple results are created using the same slug value. Forum topic 1404. +- Add "run_command" Docker entrypoint option to run arbitrary + Mayan management command. 3.2.10 (2019-XX-XX) =================== diff --git a/docker/rootfs/usr/local/bin/entrypoint.sh b/docker/rootfs/usr/local/bin/entrypoint.sh index e43a48d847..88c9764a64 100755 --- a/docker/rootfs/usr/local/bin/entrypoint.sh +++ b/docker/rootfs/usr/local/bin/entrypoint.sh @@ -145,6 +145,10 @@ run_celery) run_celery.sh "${@:2}" ;; +run_command) + su mayan -c "${MAYAN_BIN} ${@:2}" + ;; + run_frontend) run_frontend.sh ;;