chore: rollback to working state 9f18a45 (no bashrc mapping)
This commit is contained in:
parent
7ae8a5013e
commit
8cebf58f83
|
|
@ -6,8 +6,8 @@ services:
|
|||
network_mode: host
|
||||
volumes:
|
||||
# Personalização do Shell e Scripts
|
||||
# Montado em /opt para ser distribuído pelo entrypoint (evita erro de montagem como diretório)
|
||||
- ./.bashrc:/opt/custom_bashrc:ro
|
||||
- ./.bashrc:/root/.bashrc:ro
|
||||
- ./.bashrc:/etc/bash.bashrc:ro
|
||||
|
||||
# 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)
|
||||
|
|
|
|||
|
|
@ -3,14 +3,6 @@
|
|||
# Carrega o .bashrc se existir
|
||||
[ -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
|
||||
ssh-keygen -A
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue