fix: bootstrap .bashrc and PATH on fresh PVC mount
All checks were successful
Build Devpod / build (push) Successful in 7s
Build & Release / build (push) Successful in 15s

This commit is contained in:
Ryan Moon
2026-04-04 08:55:26 -05:00
parent 4c31357428
commit 1524153cfb

View File

@@ -12,6 +12,15 @@ if [ -n "$SSH_AUTHORIZED_KEYS" ]; then
chmod 600 /root/.ssh/authorized_keys
fi
# Bootstrap home dir on fresh PVC
if [ ! -f /root/.bashrc ]; then
cp /etc/skel/.bashrc /root/.bashrc 2>/dev/null || cat > /root/.bashrc <<'EOF'
export PATH="/root/.bun/bin:$PATH"
export HISTFILE=/root/.bash_history
export HISTSIZE=10000
EOF
fi
# Start SSH daemon
/usr/sbin/sshd