From 0edb73fce62a1f962af7446df1c66531dfcdbeb8 Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Fri, 26 Jan 2024 14:29:48 -0500 Subject: [PATCH] Added fix for blank PalWorld Settings file --- README.md | 3 --- scripts/start.sh | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 0ea32b6..dc157c8 100644 --- a/README.md +++ b/README.md @@ -202,9 +202,6 @@ Please keep in mind that the ENV variables will always overwrite the changes mad For a more detailed list of explanations of server settings go to: [shockbyte](https://shockbyte.com/billing/knowledgebase/1189/How-to-Configure-your-Palworld-server.html) -> [!TIP] -> If the `/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini` is empty, -> delete the file and restart the server, a new file with content will be created. ## Reporting Issues/Feature Requests diff --git a/scripts/start.sh b/scripts/start.sh index 9159076..278590f 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -46,7 +46,7 @@ cd /palworld || exit printf "\e[0;32m*****CHECKING FOR EXISTING CONFIG*****\e[0m\n" -if [ ! -f /palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini ]; then +if [ ! -f /palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini ] || [ -z $(grep '[^[:space:]]' /palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini) ]; then printf "\e[0;32m*****GENERATING CONFIG*****\e[0m\n"