From 6682a59f53f8f36737d8441e901f568c7980afe5 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Sat, 11 Jul 2026 01:59:59 +0000 Subject: [PATCH] fix: ensure user's home directory exists before writing .bashrc and update version to 3.2.25 --- entrypoint.sh | 7 +++++++ version.txt | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 0ea081a..a09db63 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -48,6 +48,13 @@ sed 's/^USER_ENV_//' | # Append the result to /usr/bin/.bashrc while IFS= read -r line do + # Ensure the user's home directory exists before writing .bashrc + if [ ! -d "/home/${HOME_USER}" ]; then + sudo mkdir -p "/home/${HOME_USER}" + sudo chown root:root "/home/${HOME_USER}" + sudo chmod 755 "/home/${HOME_USER}" + fi + # Check if the current user is root if [ "$(id -u)" = "0" ]; then echo "" >> /usr/bin/.bashrc diff --git a/version.txt b/version.txt index a575350..60b0626 100755 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -3.2.24 +3.2.25