mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-14 22:47:18 +00:00
14 lines
358 B
Bash
14 lines
358 B
Bash
|
#!/bin/bash
|
||
|
set -euo pipefail
|
||
|
|
||
|
echo "export HISTFILE=\"${TFW_HISTFILE}\"" >> /tmp/bashrc &&
|
||
|
cat /tmp/bashrc >> "/home/${AVATAO_USER}/.bashrc"
|
||
|
|
||
|
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
|
||
|
fi
|
||
|
|
||
|
rm -f bashrc requirements.txt tfw_init.sh
|