mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
install: Add experimental option to go straight through more install steps.
We'll make this the normal behavior soon, once we're satisfied with our arrangements for sending the admin straight to realm creation and using the app without configuring email. The instructions in the docs will also have to change accordingly, of course.
This commit is contained in:
@@ -16,7 +16,7 @@ EOF
|
||||
|
||||
# Shell option parsing. Over time, we'll want to move some of the
|
||||
# environment variables below into this self-documenting system.
|
||||
args="$(getopt -o '' --long help,self-signed-cert,certbot,hostname:,email: -n "$0" -- "$@")"
|
||||
args="$(getopt -o '' --long help,self-signed-cert,certbot,hostname:,email:,express -n "$0" -- "$@")"
|
||||
eval "set -- $args"
|
||||
while true; do
|
||||
case "$1" in
|
||||
@@ -42,6 +42,10 @@ while true; do
|
||||
shift
|
||||
shift
|
||||
;;
|
||||
--express) # experimental, not documented
|
||||
EXPRESS_SETUP=1
|
||||
shift
|
||||
;;
|
||||
--)
|
||||
shift
|
||||
break
|
||||
@@ -279,8 +283,9 @@ if [ -e "/var/run/supervisor.sock" ]; then
|
||||
chown zulip:zulip /var/run/supervisor.sock
|
||||
fi
|
||||
|
||||
set +x
|
||||
cat <<EOF
|
||||
if [ -z "$EXPRESS_SETUP" ]; then
|
||||
set +x
|
||||
cat <<EOF
|
||||
|
||||
Installation complete!
|
||||
|
||||
@@ -292,3 +297,10 @@ cat <<EOF
|
||||
|
||||
To configure the initial database.
|
||||
EOF
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# TODO suppress instructions on success
|
||||
sudo -u zulip /home/zulip/deployments/current/scripts/setup/initialize-database
|
||||
|
||||
sudo -u zulip /home/zulip/deployments/current/manage.py generate_realm_creation_link
|
||||
|
Reference in New Issue
Block a user