Fix init script without HOTRELOAD

This commit is contained in:
Kristóf Tóth 2019-08-15 17:26:23 +02:00
parent 75a9fce47c
commit 2e9a84bc9b
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ set -euo pipefail
echo "export HISTFILE=\"${TFW_HISTFILE}\"" >> /tmp/bashrc &&
cat /tmp/bashrc >> "/home/${AVATAO_USER}/.bashrc"
if [[ -z "${HOTRELOAD}" ]]; then
if [[ -z "${HOTRELOAD-}" ]]; then
for dir in "${TFW_LIB_DIR}/tfw" "/etc/nginx" "/etc/supervisor"; do
chown -R root:root "${dir}" && chmod -R 700 "${dir}";
done