baseimage-tutorial-framework/supervisor/tfw_init.sh

16 lines
389 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
2019-08-15 15:41:05 +00:00
chmod 777 "${TFW_PIPES_DIR}"
2019-08-15 15:03:15 +00:00
rm -f bashrc requirements.txt tfw_init.sh