chore: rollback to working state 9f18a45 (no bashrc mapping)

This commit is contained in:
João Pedro Toledo Goncalves 2026-01-29 15:08:13 -03:00
parent 7ae8a5013e
commit 8cebf58f83
2 changed files with 2 additions and 10 deletions

View File

@ -6,8 +6,8 @@ services:
network_mode: host network_mode: host
volumes: volumes:
# Personalização do Shell e Scripts # Personalização do Shell e Scripts
# Montado em /opt para ser distribuído pelo entrypoint (evita erro de montagem como diretório) - ./.bashrc:/root/.bashrc:ro
- ./.bashrc:/opt/custom_bashrc:ro - ./.bashrc:/etc/bash.bashrc:ro
# Volumes para Configurações (Persistência Interna) # Volumes para Configurações (Persistência Interna)
# Um único volume para o diretório de configs do Nginx (preserva nginx.conf, conf.d e snippets) # Um único volume para o diretório de configs do Nginx (preserva nginx.conf, conf.d e snippets)

View File

@ -3,14 +3,6 @@
# Carrega o .bashrc se existir # Carrega o .bashrc se existir
[ -f ~/.bashrc ] && . ~/.bashrc [ -f ~/.bashrc ] && . ~/.bashrc
# Distribui o .bashrc customizado se montado
if [ -f /opt/custom_bashrc ]; then
echo "📄 Aplicando .bashrc customizado..."
cat /opt/custom_bashrc > /root/.bashrc
cat /opt/custom_bashrc > /home/itguys/.bashrc
chown itguys:itguys /home/itguys/.bashrc
fi
# Gera chaves de host SSH se não existirem # Gera chaves de host SSH se não existirem
ssh-keygen -A ssh-keygen -A