Added the command to create home directory for the current user of the container. Also added few helpful comments.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-08-27 18:46:11 +08:00
parent 2b0507899c
commit 41d4f6f73f

View File

@@ -6,8 +6,12 @@ term_handler() {
exit 143; # 128 + 15 -- SIGTERM
}
# setup handler when the container is exited
trap 'kill ${!}; term_handler' SIGTERM
# setup home directory for the current user. It is useful for attaching vscode with container.
sudo mkhomedir_helper `whoami`
touch $LOG_FILE
eval $USER_COMMAND_INIT &