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.
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
1 parent
9866a5d1c5
commit
c0d77c7bd1
1 file changed
+5
-1
@@ -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