From 66a027b71ffe3d212739179475349837d300d1dd Mon Sep 17 00:00:00 2001 From: RikoDEV <18230443+RikoDEV@users.noreply.github.com> Date: Sat, 29 Aug 2020 19:35:05 +0200 Subject: [PATCH] Create entrypoint.sh --- entrypoint.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 entrypoint.sh diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..5e92f79 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,12 @@ +#!/bin/bash +cd /home/container + +# Output Current Java Version +java -version ## only really needed to show what version is being used. Should be changed for different applications + +# 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}