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
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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 &
|
||||
|
||||
Reference in New Issue
Block a user