From f91d1c56a110130f36fd9a3b4518c653905196cd Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Fri, 19 Apr 2024 15:50:09 +0000 Subject: [PATCH] Update entrypoint.sh and version.txt Updating to version 3.0.32 --- entrypoint.sh | 10 ++++++++-- version.txt | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 14f06ac..6b66514 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -48,8 +48,14 @@ sed 's/^USER_ENV_//' | # Append the result to /usr/bin/.bashrc while IFS= read -r line do - echo "" >> /usr/bin/.bashrc - echo "export $line" >> /usr/bin/.bashrc + # Check if the current user is root + if [ "$(id -u)" = "0" ]; then + echo "" >> /usr/bin/.bashrc + echo "export $line" >> /usr/bin/.bashrc + else + echo "" >> /home/${HOME_USER}/.bashrc + echo "export $line" >> /home/${HOME_USER}/.bashrc + fi done USER="$HOME_USER" diff --git a/version.txt b/version.txt index 4037fd0..8d87cde 100755 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -3.0.31 \ No newline at end of file +3.0.32 \ No newline at end of file