add newlines after printf

This commit is contained in:
Thijs van Loef
2024-01-21 16:24:31 +01:00
parent 64750ad399
commit 19c25a9542
2 changed files with 4 additions and 4 deletions

View File

@@ -1,11 +1,11 @@
#!/bin/bash
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
groupmod -o -g "${PGID}" steam
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
fi
@@ -13,7 +13,7 @@ mkdir -p /palworld
chown -R steam:steam /palworld
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'
fi

View File

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