From ba267c2494c99223a4aaad5349b0c0a60eea8441 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Mon, 15 Apr 2024 04:33:36 +0000 Subject: [PATCH] Trying to fix issue of .bashrc not exist. Updating to version 3.0.7 --- entrypoint.sh | 5 +++++ version.txt | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index b940aae..3d79418 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -40,6 +40,11 @@ if ! id -u $HOME_USER > /dev/null 2>&1; then sudo adduser --disabled-password --gecos "" ${HOME_USER} sudo echo "$HOME_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null + # Check if the .bashrc file exists, if not, create it + if [ ! -f /home/${HOME_USER}/.bashrc ]; then + sudo touch /home/${HOME_USER}/.bashrc + fi + # Change the ownership of the .bashrc file sudo chown ${HOME_USER} /home/${HOME_USER}/.bashrc diff --git a/version.txt b/version.txt index 8ffc1ad..3a8b971 100755 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -3.0.6 \ No newline at end of file +3.0.7 \ No newline at end of file