diff options
author | John Ankarström <john@ankarstrom.se> | 2020-10-30 13:34:57 +0100 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2020-10-30 13:34:57 +0100 |
commit | acb068de4fd2cd37a8a0ac406f8a0eeed4fd5380 (patch) | |
tree | 2449c0b37018e18da2cbe2300412d117e1973356 /install | |
parent | 82cd74732d64819d32ba05fc69e16bcbd9462166 (diff) | |
download | alpine-acb068de4fd2cd37a8a0ac406f8a0eeed4fd5380.tar.gz |
Move Minecraft config to separate branch
Diffstat (limited to 'install')
-rw-r--r-- | install | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -0,0 +1,14 @@ +#!/bin/sh + +# install the latest build of Paper for Minecraft VERSION into MCPATH + +VERSION=1.16.3 +MCPATH=/srv/minecraft + +apk add openjdk8-jre ncurses +apk add screen # needed only if you use the OpenRC script + +mkdir -p "$MCPATH" +cd "$MCPATH" +build=`curl -s "https://papermc.io/api/v1/paper/$VERSION" | sed 's/.*"latest":"\([0-9]*\)".*/\1/'` +curl -o paper.server.jar "https://papermc.io/api/v1/paper/$VERSION/$build/download"
\ No newline at end of file |