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