Skip to content

Commit

Permalink
Enable user group creation for rstudio-user in Workbench image (#780)
Browse files Browse the repository at this point in the history
* Enable user group creation for `rstudio-user` in Workbench image

* Fix default UID in script
  • Loading branch information
ianpittwood authored May 28, 2024
1 parent e5a3d81 commit 7a1c227
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion workbench/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ else
if [ -z "$RSW_TESTUSER" ]; then
echo "Empty 'RSW_TESTUSER' variables, not creating test user";
else
useradd -m -s /bin/bash -N -u $RSW_TESTUSER_UID $RSW_TESTUSER
if [ -z "$RSW_TESTUSER_UID" ]; then
RSW_TESTUSER_UID=10000
fi
useradd -m -s /bin/bash -u $RSW_TESTUSER_UID -U $RSW_TESTUSER
echo "$RSW_TESTUSER:$RSW_TESTUSER_PASSWD" | sudo chpasswd
fi
fi
Expand Down

0 comments on commit 7a1c227

Please sign in to comment.