mirror of https://github.com/zulip/zulip.git
install: Verify that the script has sufficient privileges.
This commit is contained in:
parent
bec3c0943a
commit
21b7048e54
|
@ -1,3 +1,7 @@
|
|||
#!/bin/bash
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
echo "Error: The installation script must be run as root" >&2
|
||||
exit 1
|
||||
fi
|
||||
mkdir -p /var/log/zulip
|
||||
"$(dirname "$(dirname "$0")")/lib/install" "$@" 2>&1 | tee -a /var/log/zulip/install.log
|
||||
|
|
Loading…
Reference in New Issue