Created
March 23, 2022 19:15
-
-
Save theraw/9febbaa70308ef3b499d0000b5ad93f6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sleep 5 | |
# Set Ulimit | |
ulimit -c unlimited | |
echo "Set: ulimit -c unlimited" | |
cd /home/container | |
# Replace Startup Variables | |
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` | |
echo ":/home/container$ ${MODIFIED_STARTUP}" | |
# Run the Server | |
${MODIFIED_STARTUP} | |
if [ $? -ne 0 ]; then | |
echo "PTDL_CONTAINER_ERR: There was an error while attempting to run the start command." | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment