From c3d35bd60753ede918db91646832e4b9a0390e87 Mon Sep 17 00:00:00 2001 From: Bl4ckSpr4y Date: Sun, 25 Feb 2018 19:58:37 +0200 Subject: [PATCH] Create entrypoint.sh --- entrypoint.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 entrypoint.sh diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..bdedfb5 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,11 @@ +#!/bin/bash +sleep 3 + +cd /home/container + +export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'` + +MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` +echo ":/home/container$ ${MODIFIED_STARTUP}" + +${MODIFIED_STARTUP}