Changed the way user directory is created. Now doing stuff manually so that permissions are handled correctly. This is especially useful when mounting something inside the user directory.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -12,7 +12,11 @@ term_handler() {
|
||||
trap 'kill ${!}; term_handler' SIGTERM
|
||||
|
||||
# setup home directory for the current user. It is useful for attaching vscode with container.
|
||||
sudo mkhomedir_helper `whoami`
|
||||
user_name=$(whoami)
|
||||
user_home="/home/$user_name"
|
||||
mkdir -p $user_home
|
||||
sudo chown -R $(id -u):$(id -g) $user_home
|
||||
cp -r /etc/skel/. $user_home
|
||||
|
||||
if [[ $LOG_FILE != "/dev/null" ]];
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user