Set umask 022 before starting prod install.

Fixes #2372.
This commit is contained in:
Feorlen 2017-03-25 16:41:09 -07:00 committed by Tim Abbott
parent 5672618b82
commit 10ccfcdc8e
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@ if [ "$EUID" -ne 0 ]; then
echo "Error: The installation script must be run as root" >&2
exit 1
fi
umask 022
mkdir -p /var/log/zulip
"$(dirname "$(dirname "$0")")/lib/install" "$@" 2>&1 | tee -a /var/log/zulip/install.log