mirror of https://github.com/zulip/zulip.git
Requested changes per https://github.com/zulip/zulip/pull/10847#pullrequestreview-182119529
This commit is contained in:
parent
8ff820936c
commit
52c4c8bc51
|
@ -3,6 +3,11 @@
|
|||
set -e
|
||||
set -x
|
||||
|
||||
if [ "$(id -u)" -ne "0" ]; then
|
||||
>&2 echo "$0 must be run as root."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cat <<EOF
|
||||
This script will completely wipe your database, including all users, chat
|
||||
messages, and metadata. It will not modify your existing /etc/zulip
|
||||
|
@ -19,10 +24,5 @@ if [ "x$yesno" != "xYES" ]; then
|
|||
exit 1;
|
||||
fi
|
||||
|
||||
if [ "$(id -u)" -ne "0" ]; then
|
||||
>&2 echo "Exiting because root is not available."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
/home/zulip/deployments/current/scripts/setup/postgres-init-db
|
||||
/home/zulip/deployments/current/scripts/setup/initialize-database
|
||||
|
|
Loading…
Reference in New Issue