Fixed the creation and permissions on log file.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-12-11 13:04:57 +08:00
parent 0800461a3f
commit 10477a6671

View File

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