Skip to content
Snippets Groups Projects
Commit c45a175c authored by TheBroTMv2's avatar TheBroTMv2
Browse files

bugfix

parent b222823a
No related branches found
No related tags found
No related merge requests found
......@@ -8,15 +8,14 @@ ENV MC_VERSION="latest" \
JAVA_OPTS=""
ADD papermc.sh .
COPY backup.sh .
COPY restore.sh .
ADD backup.sh .
ADD restore.sh .
RUN apt-get update \
&& apt-get install -y wget \
&& apt-get install -y curl \
&& apt-get install -y jq \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir /papermc
# ADD initial.tar.gz /papermc
# Start script
CMD ["sh", "./papermc.sh"]
......@@ -24,4 +23,5 @@ CMD ["sh", "./papermc.sh"]
# Container setup
EXPOSE 25565/tcp
EXPOSE 25565/udp
EXPOSE 8123/tcp
VOLUME /papermc
#!/bin/bash
declare -a worlds=(world world_nether)
backupdir=backup/
backupdir=/backup/
ext=.tar.gz
dateformat=$(date +%F_%H-%M-%S)UTC$ext
......
......@@ -30,8 +30,12 @@ if [ ! -e ${JAR_NAME} ]
fi
fi
# minecraft base image laden
curl -u tmueller:jtbAPAUYerYM7@h#17#*Rf0XUps6k https://tobistechblog.de/uni/initial.tar.gz --output initial.tar.gz
tar -xvzf initial.tar.gz
if [ -d 'plugins'] ; then
sleep 0
else
curl -u tmueller:jtbAPAUYerYM7@h#17#*Rf0XUps6k https://tobistechblog.de/uni/initial.tar.gz --output initial.tar.gz
tar -xvzf initial.tar.gz
fi
# Start server
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment