palworld-server-docker
palworld-server-docker copied to clipboard
Added fix for blank PalWorld Settings file
trafficstars
Context
- Removes the need to manually delete the PalWorldSettings.ini file if it is blank to trigger a copy of the default file at next startup.
Choices
- Using grep since that is already included in the image.
Test instructions
- Start the container without
:/palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini - Verify the file is created
- Start the container with an empty (zero bytes, you can use touch)
:/palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini - Verify the file is overwritten
- Start container with a valid
:/palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini(Ideally modify a value) - Verify the file not overwritten
Checklist before requesting a review
- [x] I have performed a self-review of my code
- [x] I've added documentation about this change to the README.
- [x] I've not introduced breaking changes.
I might have set shellcheck too strict, for now you can use:
# shellcheck disable=SC2143
In the line above the "faulty" line