/
githubmirror
/
zulip
Обзор
Документация
Войти
/
githubmirror
/
zulip
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
11.3
scripts/setup/install
27 строк
914 B
Tim Abbott
install: Use a period at end of root error message.
23 июн 2021, 18:42
23 июн 2021, 18:42
83738f7
Код
Авторство
О чём код?
#!/usr/bin/env bash # # Thin wrapper around the actual install script (scripts/lib/install). # The purpose of this wrapper is to log the full install script output # to /var/log/zulip/install.log for easy debugging. set -e 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 failed=${PIPESTATUS[0]} if [ "$failed" -ne 0 ]; then echo -e '\033[0;31m' echo "Zulip installation failed (exit code $failed)!" echo echo -n "The install process is designed to be idempotent, so you can retry " echo -n "after resolving whatever issue caused the failure (there should be a traceback above). " echo -n "A log of this installation is available in /var/log/zulip/install.log" echo -e '\033[0m' exit "$failed" fi