baseimage-tutorial-framework/supervisor/tfw_init.sh

14 lines
359 B
Bash
Raw Normal View History

2019-08-15 15:03:15 +00:00
#!/bin/bash
set -euo pipefail
echo "export HISTFILE=\"${TFW_HISTFILE}\"" >> /tmp/bashrc &&
cat /tmp/bashrc >> "/home/${AVATAO_USER}/.bashrc"
2019-08-15 15:26:23 +00:00
if [[ -z "${HOTRELOAD-}" ]]; then
2019-08-15 15:03:15 +00:00
for dir in "${TFW_LIB_DIR}/tfw" "/etc/nginx" "/etc/supervisor"; do
chown -R root:root "${dir}" && chmod -R 700 "${dir}";
done
fi
rm -f bashrc requirements.txt tfw_init.sh