From 2ab5fcffc7abef07f80e5db1b4fd143f200ba572 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Tue, 9 Apr 2024 03:50:29 +0000 Subject: [PATCH] Trying to fix user issue. Updating to version 2.0.30 --- entrypoint.sh | 6 ++++++ version.txt | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index df5a300..eedae47 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -21,6 +21,12 @@ if [ "${HOME_USER-}" ]; then sudo echo "$HOME_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null fi + # Check if .bashrc file exists + if [ ! -f "/home/${HOME_USER}/.bashrc" ]; then + # If not, create it + sudo touch /home/${HOME_USER}/.bashrc + fi + # Change the owner of the .bashrc file to HOME_USER sudo chown ${HOME_USER} /home/${HOME_USER}/.bashrc diff --git a/version.txt b/version.txt index 90dd585..3111569 100755 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -2.0.29 \ No newline at end of file +2.0.30 \ No newline at end of file