mirror of
https://github.com/zulip/docker-zulip.git
synced 2025-11-01 20:44:07 +00:00
entrypoint: Add app:init command to initialize with running server.
This can be useful for initializing a container as a separate step from running it in production.
This commit is contained in:
@@ -455,6 +455,11 @@ appRun() {
|
||||
echo ""
|
||||
exec supervisord -n -c "/etc/supervisor/supervisord.conf"
|
||||
}
|
||||
appInit() {
|
||||
echo "=== Running initial setup ==="
|
||||
initialConfiguration
|
||||
bootstrappingEnvironment
|
||||
}
|
||||
appManagePy() {
|
||||
COMMAND="$1"
|
||||
shift 1
|
||||
@@ -541,6 +546,7 @@ appHelp() {
|
||||
echo "> app:restore - Restore backups of Zulip instances"
|
||||
echo "> app:certs - Create self-signed certificates"
|
||||
echo "> app:run - Run the Zulip server"
|
||||
echo "> app:init - Run inital setup of Zulip server"
|
||||
echo "> [COMMAND] - Run given command with arguments in shell"
|
||||
}
|
||||
appVersion() {
|
||||
@@ -555,6 +561,9 @@ case "$1" in
|
||||
app:run)
|
||||
appRun
|
||||
;;
|
||||
app:init)
|
||||
appInit
|
||||
;;
|
||||
app:managepy)
|
||||
shift 1
|
||||
appManagePy "$@"
|
||||
|
||||
Reference in New Issue
Block a user