Merge pull request #27 from thijsvanloef/cleanup-logging

add newlines after printf
This commit is contained in:
Thijs van Loef
2024-01-21 16:41:05 +01:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -1,11 +1,11 @@
#!/bin/bash #!/bin/bash
if [[ ! "${PUID}" -eq 0 ]] && [[ ! "${PGID}" -eq 0 ]]; then if [[ ! "${PUID}" -eq 0 ]] && [[ ! "${PGID}" -eq 0 ]]; then
echo "Executing usermod..." printf "\e[0;32m*****EXECUTING USERMOD*****\e[0m\n"
usermod -o -u "${PUID}" steam usermod -o -u "${PUID}" steam
groupmod -o -g "${PGID}" steam groupmod -o -g "${PGID}" steam
else else
echo "Running as root is not supported, please fix your PUID and PGID!" printf "\033[31mRunning as root is not supported, please fix your PUID and PGID!\n"
exit 1 exit 1
fi fi
@@ -13,7 +13,7 @@ mkdir -p /palworld
chown -R steam:steam /palworld chown -R steam:steam /palworld
if [ "${UPDATE_ON_BOOT}" = true ]; then if [ "${UPDATE_ON_BOOT}" = true ]; then
printf "\e[0;32m*****STARTING INSTALL/UPDATE*****\e[0m" 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' su steam -c '/home/steam/steamcmd/steamcmd.sh +force_install_dir "/palworld" +login anonymous +app_update 2394010 validate +quit'
fi fi

View File

@@ -34,6 +34,6 @@ cd /palworld || exit
echo "${STARTCOMMAND}" echo "${STARTCOMMAND}"
printf "\e[0;32m*****STARTING SERVER*****\e[0m" printf "\e[0;32m*****STARTING SERVER*****\e[0m\n"
su steam -c "${STARTCOMMAND}" su steam -c "${STARTCOMMAND}"