Minimized processes running as root.

This commit is contained in:
Carlos M. Martinez
2024-01-27 19:49:43 -05:00
parent 3802a87bf9
commit fdfffc47d8
4 changed files with 17 additions and 11 deletions

View File

@@ -10,12 +10,7 @@ else
fi
mkdir -p /palworld/backups
chown -R steam:steam /palworld
if [ "${UPDATE_ON_BOOT}" = true ]; then
printf "\e[0;32m*****STARTING INSTALL/UPDATE*****\e[0m\n"
su steam -c '/home/steam/steamcmd/steamcmd.sh +force_install_dir "/palworld" +login anonymous +app_update 2394010 validate +quit'
fi
chown -R steam:steam /palworld /home/steam/
term_handler() {
if [ "${RCON_ENABLED}" = true ]; then
@@ -29,6 +24,7 @@ term_handler() {
trap 'term_handler' SIGTERM
./start.sh &
su steam -c ./start.sh &
# Process ID of su
killpid="$!"
wait $killpid