From f763e937ae3c4b8f299effe6ae7b3a0173339979 Mon Sep 17 00:00:00 2001 From: aptalca Date: Mon, 29 Nov 2021 21:14:14 -0500 Subject: [PATCH] Create `.profile` and `.bashrc` for the user. --- README.md | 2 ++ readme-vars.yml | 2 ++ root/etc/cont-init.d/30-config | 5 +++++ 3 files changed, 9 insertions(+) diff --git a/README.md b/README.md index 2aa8d63..1438961 100644 --- a/README.md +++ b/README.md @@ -245,4 +245,6 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **29.11.21:** - Create `.profile` and `.bashrc` for the user. +* **29.11.21:** - Release `insiders` tag. * **28.11.21:** - Initial Release. diff --git a/readme-vars.yml b/readme-vars.yml index 8b8ff3a..1845980 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -59,4 +59,6 @@ app_setup_block: | # changelog changelogs: + - { date: "29.11.21:", desc: "Create `.profile` and `.bashrc` for the user." } + - { date: "29.11.21:", desc: "Release `insiders` tag." } - { date: "28.11.21:", desc: "Initial Release." } diff --git a/root/etc/cont-init.d/30-config b/root/etc/cont-init.d/30-config index a2aac58..be95da1 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 if [ -f "/usr/bin/find" ] && [ -f "/usr/bin/xargs" ]; then CORES=$(nproc --all)