-
Notifications
You must be signed in to change notification settings - Fork 161
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededneeds-more-informationNot enough information provided to helpNot enough information provided to helpwaiting-for-feedbackWaiting on feedbackWaiting on feedback
Description
Have you read the Important information text above
- 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
- Would you be willing to help implement this feature?
Final checks
- 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.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededneeds-more-informationNot enough information provided to helpNot enough information provided to helpwaiting-for-feedbackWaiting on feedbackWaiting on feedback