„dockerrun.sh“ hinzufügen
This commit is contained in:
parent
894af50d34
commit
2d7d401180
1 changed files with 18 additions and 0 deletions
18
dockerrun.sh
Normal file
18
dockerrun.sh
Normal file
|
@ -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/*
|
Loading…
Reference in a new issue