Added fix for blank PalWorld Settings file

This commit is contained in:
Carlos M. Martinez
2024-01-26 14:29:48 -05:00
parent 4ba38be206
commit 0edb73fce6
2 changed files with 1 additions and 4 deletions

View File

@@ -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 `<mount_folder>/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

View File

@@ -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"