From 0509b51cf715ca65cd34683b2bfdcbd576b19e85 Mon Sep 17 00:00:00 2001 From: Roxedus Date: Sat, 20 Nov 2021 21:37:55 +0100 Subject: [PATCH] Copy bashrc from root to abc --- root/etc/cont-init.d/30-config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/root/etc/cont-init.d/30-config b/root/etc/cont-init.d/30-config index b3f6cd4..47890be 100644 --- a/root/etc/cont-init.d/30-config +++ b/root/etc/cont-init.d/30-config @@ -17,6 +17,11 @@ if [ -n "${SUDO_PASSWORD}" ] || [ -n "${SUDO_PASSWORD_HASH}" ]; then fi fi +[[ ! -f /config/.bashrc ]] && \ + cp /root/.bashrc /config/.bashrc +[[ ! -f /config/.profile ]] && \ + cp /root/.profile /config/.profile + # permissions chown -R abc:abc \ /config