mirror of https://github.com/zulip/zulip.git
postgres-init-db: Throw an error if not run as root.
Fixes part of the dicsussion in #552.
This commit is contained in:
parent
eaefa31969
commit
24f3419449
|
@ -1,5 +1,10 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
echo "Error: This script must be run as root" >&2
|
||||
exit 1
|
||||
fi
|
||||
set -x
|
||||
|
||||
# What user should we use for connecting to the database
|
||||
|
|
Loading…
Reference in New Issue