Skip to content

Commit f44200d

Browse files
authored
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.
1 parent 0aac179 commit f44200d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

entrypoint.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,11 @@ appRun() {
455455
echo ""
456456
exec supervisord -n -c "/etc/supervisor/supervisord.conf"
457457
}
458+
appInit() {
459+
echo "=== Running initial setup ==="
460+
initialConfiguration
461+
bootstrappingEnvironment
462+
}
458463
appManagePy() {
459464
COMMAND="$1"
460465
shift 1
@@ -541,6 +546,7 @@ appHelp() {
541546
echo "> app:restore - Restore backups of Zulip instances"
542547
echo "> app:certs - Create self-signed certificates"
543548
echo "> app:run - Run the Zulip server"
549+
echo "> app:init - Run inital setup of Zulip server"
544550
echo "> [COMMAND] - Run given command with arguments in shell"
545551
}
546552
appVersion() {
@@ -555,6 +561,9 @@ case "$1" in
555561
app:run)
556562
appRun
557563
;;
564+
app:init)
565+
appInit
566+
;;
558567
app:managepy)
559568
shift 1
560569
appManagePy "$@"

0 commit comments

Comments
 (0)