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

This commit is contained in:
Ameer Hamza Khan
2024-12-03 07:34:28 +00:00
parent 9866a5d1c5
commit c0d77c7bd1

View File

@@ -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