From 2d7d4011807f9e3072e390969cf3e528de33b526 Mon Sep 17 00:00:00 2001 From: Alpha Date: Mon, 7 Jan 2019 13:11:13 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9Edockerrun.sh=E2=80=9C=20hinzuf=C3=BCge?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dockerrun.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 dockerrun.sh diff --git a/dockerrun.sh b/dockerrun.sh new file mode 100644 index 0000000..02b8e4c --- /dev/null +++ b/dockerrun.sh @@ -0,0 +1,18 @@ +#!/bin/bash +file="MFBot_Konsole_x86_64" +if [ -f "$file" ] +then + echo "$file found." +else + echo "$file not found. Nachladen" + sh ./download.sh + +fi +cd /mfbot +screen -A -m -d -S mfbot ./$file +while [ ! -f /mfbot/logs/General.log ] ; +do + sleep 1 +done +sleep 5 +tail -f /mfbot/logs/* \ No newline at end of file