This commit is contained in:
Jamieson Becker 2018-12-07 10:27:07 -06:00 committed by GitHub
parent 8ff820936c
commit 52c4c8bc51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -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