docker-images/entrypoint.sh
2017-03-17 19:29:12 -04:00

20 lines
414 B
Bash

#!/bin/bash
sleep 5
cd /home/container
# Output Current Java Version
java -version
# Replace Startup Variables
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP_CMD} | 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