diff --git a/Dockerfile b/Dockerfile index 1515830..7e10879 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ RUN apk update \ && mkdir /papermc # Start script -CMD ["sh", "./papermc.sh"] +CMD ["bash", "./papermc.sh"] # Container setup EXPOSE 25565/tcp diff --git a/papermc.sh b/papermc.sh index c9c80e1..71a9a0a 100644 --- a/papermc.sh +++ b/papermc.sh @@ -3,6 +3,14 @@ # Enter server directory cd papermc +# Set nullstrings back to 'latest' +: ${MC_VERSION:=latest} +: ${PAPER_BUILD:=latest} + +# Lowercase these to avoid 404 errors on wget +MC_VERSION=${MC_VERSION,,} +PAPER_BUILD=${PAPER_BUILD,,} + # Get version information and build download URL and jar name URL=https://papermc.io/api/v2/projects/paper if [ ${MC_VERSION} = latest ]