mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-14 17:27:16 +00:00
Fix init script without HOTRELOAD
This commit is contained in:
parent
75a9fce47c
commit
2e9a84bc9b
@ -4,7 +4,7 @@ set -euo pipefail
|
|||||||
echo "export HISTFILE=\"${TFW_HISTFILE}\"" >> /tmp/bashrc &&
|
echo "export HISTFILE=\"${TFW_HISTFILE}\"" >> /tmp/bashrc &&
|
||||||
cat /tmp/bashrc >> "/home/${AVATAO_USER}/.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
|
for dir in "${TFW_LIB_DIR}/tfw" "/etc/nginx" "/etc/supervisor"; do
|
||||||
chown -R root:root "${dir}" && chmod -R 700 "${dir}";
|
chown -R root:root "${dir}" && chmod -R 700 "${dir}";
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user