docker-palworld-dedicated-server
docker-palworld-dedicated-server copied to clipboard
[Feature Request] The ability to allow advanced custom scripts
Have you read the Important information text above
- [X] Yes i did
Describe the feature
This would allow any advanced user to modify files or have custom scripts running/ran before the server starts, allowing unlimited potential. For example, if I wanted to replace a file, or use linux sed to replace a few words in a file, this would be possible.
I would just mount /mnt/myscripts
with a custom.sh
file to /opt/custom/
.
Then adding something like this at the top of servermanager.sh should suffice:
echo "> Checking for optional scripts"
cp -f /opt/custom/custom.sh /opt/scripts/custom.sh > /dev/null 2>&1 ||:
if [ -f /opt/scripts/custom.sh ]; then
echo "> Found optional script, executing---"
chmod -f +x /opt/scripts/custom.sh ||:
/opt/scripts/custom.sh || echo "> Error thrown in optional script"
else
echo "> No optional script found, continuing"
fi
Additional information
- [X] Would you be willing to help implement this feature?
Final checks
- [X] I understand that this is a feature request function. I also understand that if i use this to report a bug report, that my issue might be un-answered closed.