diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 51ee95b..72f83cd 100755 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -14,7 +14,11 @@ trap 'kill ${!}; term_handler' SIGTERM # setup home directory for the current user. It is useful for attaching vscode with container. sudo mkhomedir_helper `whoami` -sudo touch $LOG_FILE +if [[ $LOG_FILE != "/dev/null" ]]; +then + sudo touch $LOG_FILE + sudo chown -R $(id -u):$(id -g) $LOG_FILE +fi eval $SYS_COMMAND_INIT eval $USER_COMMAND_INIT &