mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
This fixes issue #123. Namely, the script in scripts/setup/install was returning 0. Adding `set -e` and `set -o pipeline` causes the install script to exit and return 1 if any part fails, including piping output (`set -o pipeline` does this).
10 lines
255 B
Bash
Executable File
10 lines
255 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
set -o pipefail
|
|
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
|