mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
postgres-init-db: Throw an error if not run as root.
Fixes part of the dicsussion in #552.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user