Skip to content

Commit 86ded94

Browse files
authored
Add usermod command for ubuntu user home directory
Add usermod command to change home directory for ubuntu user.
1 parent 5ed24a7 commit 86ded94

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

container/run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ if [ "$(getent passwd wljs | cut -d: -f6)" != "/home/wljs" ]; then
1313
usermod -d /home/wljs -m wljs
1414
fi
1515

16+
# a bug, no idea why
17+
usermod -d /home/wljs ubuntu
18+
1619
# Check if the script is running as root and set LICENSE_DIR accordingly
1720
if [ "$PGID" -eq 0 ]; then
1821
LICENSE_DIR=/root/.WolframEngine/Licensing

0 commit comments

Comments
 (0)