From facb68e8a286bc9022db0f1a94718ae549178eb9 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Wed, 31 May 2023 21:14:58 +0100 Subject: [PATCH] feat: Update entrypoint.sh to set HOME environment variable This commit updates the entrypoint.sh script to set the HOME environment variable to /home/docker. This change ensures that the correct home directory is used when switching to user ${USERNAME}. --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index 6bea9e4..f954245 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -49,6 +49,7 @@ echo -e "updating permissions" find /linuxgsm -user ${UID} -exec chown -h linuxgsm {} \; find /linuxgsm -group ${GID} -exec chgrp -h linuxgsm {} \; chown -R ${USERNAME}:${USERNAME} /linuxgsm +export HOME=/home/docker echo -e "" echo -e "Switch to user ${USERNAME}"