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

@@ -1,5 +1,10 @@
#!/bin/bash
if [ "${UPDATE_ON_BOOT}" = true ]; then
printf "\e[0;32m*****STARTING INSTALL/UPDATE*****\e[0m\n"
/home/steam/steamcmd/steamcmd.sh +force_install_dir "/palworld" +login anonymous +app_update 2394010 validate +quit
fi
STARTCOMMAND=("./PalServer.sh")
if [ -n "${PORT}" ]; then
@@ -81,5 +86,5 @@ EOL
printf "\e[0;32m*****STARTING SERVER*****\e[0m\n"
echo "bash -c '${STARTCOMMAND[*]}'"
su steam -c "bash -c '${STARTCOMMAND[*]}'"
"${STARTCOMMAND[@]}"