From 8dea73ec953e07137c2e0453067f18e414c503f3 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Fri, 19 Apr 2024 11:42:39 +0000 Subject: [PATCH] Move .bashrc and .profile files to user's home directory, update version to 3.0.29 --- entrypoint.sh | 16 ++++++++-------- version.txt | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 20e7eeb..014410a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -73,6 +73,14 @@ else sudo chown -R ${HOME_USER} /home/${HOME_USER} fi +# Move the .bashrc file to the user's home directory +sudo mv /usr/bin/.bashrc /home/${HOME_USER}/.bashrc +sudo chown ${HOME_USER} /home/${HOME_USER}/.bashrc + +# Move the .profile file to the user's home directory +sudo mv /usr/bin/.profile /home/${HOME_USER}/.profile +sudo chown ${HOME_USER} /home/${HOME_USER}/.profile + # Find .sh files in /usr/bin/custom-scripts and execute them in order for script in $(find /usr/bin/custom-scripts -name "*.sh" | sort); do chmod +x $script @@ -83,14 +91,6 @@ for script in $(find /usr/bin/custom-scripts -name "*.sh" | sort); do fi done -# Move the .bashrc file to the user's home directory -sudo mv /usr/bin/.bashrc /home/${HOME_USER}/.bashrc -sudo chown ${HOME_USER} /home/${HOME_USER}/.bashrc - -# Move the .profile file to the user's home directory -sudo mv /usr/bin/.profile /home/${HOME_USER}/.profile -sudo chown ${HOME_USER} /home/${HOME_USER}/.profile - #Creating extensions folder if [ ! -d "/home/${HOME_USER}/.config/Code" ]; then sudo mkdir -p /home/${HOME_USER}/.config/Code diff --git a/version.txt b/version.txt index ff4b945..0667b5f 100755 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -3.0.28 \ No newline at end of file +3.0.29 \ No newline at end of file