Skip to content

Instantly share code, notes, and snippets.

@theraw
Created March 23, 2022 19:15
Show Gist options
  • Save theraw/9febbaa70308ef3b499d0000b5ad93f6 to your computer and use it in GitHub Desktop.
Save theraw/9febbaa70308ef3b499d0000b5ad93f6 to your computer and use it in GitHub Desktop.
#!/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