mirror of
https://github.com/parkervcp/eggs.git
synced 2024-11-26 07:52:56 +08:00
Update egg-spigot.json
This commit is contained in:
parent
a61e6dc015
commit
5aa50f6231
@ -4,7 +4,7 @@
|
||||
"version": "PTDL_v1",
|
||||
"update_url": null
|
||||
},
|
||||
"exported_at": "2021-06-11T14:13:30+01:00",
|
||||
"exported_at": "2021-06-11T15:58:50+01:00",
|
||||
"name": "Spigot",
|
||||
"author": "support@pterodactyl.io",
|
||||
"description": "Spigot is the most widely-used modded Minecraft server software in the world. It powers many of the top Minecraft server networks around to ensure they can cope with their huge player base and ensure the satisfaction of their players. Spigot works by reducing and eliminating many causes of lag, as well as adding in handy features and settings that help make your job of server administration easier.",
|
||||
@ -26,7 +26,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"installation": {
|
||||
"script": "#!\/bin\/bash\r\n# Spigot Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\n\r\napt update \r\napt install -y curl wget git openssl bash\r\n\r\n## Download Java 16 and 8\r\ncurl -Lo java16.tar.gz https:\/\/github.com\/AdoptOpenJDK\/openjdk16-binaries\/releases\/download\/jdk-16.0.1%2B9_openj9-0.26.0\/OpenJDK16U-jdk_x64_linux_openj9_16.0.1_9_openj9-0.26.0.tar.gz\r\n\r\ncurl -Lo java8.tar.gz https:\/\/github.com\/AdoptOpenJDK\/openjdk8-binaries\/releases\/download\/jdk8u282-b08_openj9-0.24.0\/OpenJDK8U-jre_x64_linux_openj9_8u282b08_openj9-0.24.0.tar.gz\r\n\r\n## Create directories for Java 16 and 8.\r\nmkdir -p \/usr\/local\/java16 \/usr\/local\/java8\r\n\r\n## Extract Java 16, 8 to its folder.\r\ntar -xzvf java16.tar.gz -C \/usr\/local\/java16 --strip-components=1\r\ntar -xzvf java8.tar.gz -C \/usr\/local\/java8 --strip-components=1\r\n\r\n## Only download if a path is provided, otherwise continue.\r\nif [ ! -z \"${DL_PATH}\" ]; then\r\n cd \/mnt\/server\r\n\r\n MODIFIED_DOWNLOAD=`eval echo $(echo ${DL_PATH} | sed -e 's\/{{\/${\/g' -e 's\/}}\/}\/g')`\r\n curl -sSL -o ${SERVER_JARFILE} ${MODIFIED_DOWNLOAD}\r\nelse\r\n mkdir -p \/srv\/\r\n cd \/srv\/\r\n \r\n wget https:\/\/hub.spigotmc.org\/jenkins\/job\/BuildTools\/lastSuccessfulBuild\/artifact\/target\/BuildTools.jar\r\n \r\n if [[ \"${DL_VERSION}\" == \"latest\" ]] || [[ \"${DL_VERSION}\" == 1.17* ]]; then\r\n export PATH=\/usr\/local\/java16\/bin:$PATH\r\n export JAVA_HOME=\/usr\/local\/java16\r\n else\r\n export PATH=\/usr\/local\/java8\/bin:$PATH\r\n export JAVA_HOME=\/usr\/local\/java8\r\n fi\r\n \r\n java -jar BuildTools.jar --rev ${DL_VERSION}\r\n\r\n mv spigot-*.jar \/mnt\/server\/${SERVER_JARFILE}\r\nfi",
|
||||
"script": "#!\/bin\/bash\r\n# Spigot Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\n\r\napt update \r\napt install -y curl wget git openssl bash\r\n\r\nif [[ \"${DL_VERSION}\" == \"latest\" ]] || [[ \"$(echo ${DL_VERSION} | sed 's\/\\.\/\/g')\" -ge 177 ]]; then\r\n mkdir -p \/usr\/local\/java\/16\r\n curl -Lo java16.tar.gz https:\/\/github.com\/AdoptOpenJDK\/openjdk16-binaries\/releases\/download\/jdk-16.0.1%2B9_openj9-0.26.0\/OpenJDK16U-jdk_x64_linux_openj9_16.0.1_9_openj9-0.26.0.tar.gz\r\n tar -xzvf java16.tar.gz -C \/usr\/local\/java\/16 --strip-components=1\r\n export PATH=\/usr\/local\/java\/16\/bin:$PATH\r\n export JAVA_HOME=\/usr\/local\/java\/16\r\nelse\r\n mkdir -p \/usr\/local\/java\/8\r\n curl -Lo java8.tar.gz https:\/\/github.com\/AdoptOpenJDK\/openjdk8-binaries\/releases\/download\/jdk8u282-b08_openj9-0.24.0\/OpenJDK8U-jre_x64_linux_openj9_8u282b08_openj9-0.24.0.tar.gz\r\n tar -xzvf java8.tar.gz -C \/usr\/local\/java\/8 --strip-components=1\r\n export PATH=\/usr\/local\/java\/8\/bin:$PATH\r\n export JAVA_HOME=\/usr\/local\/java\/8\r\nfi\r\n\r\n## Only download if a path is provided, otherwise continue.\r\nif [ ! -z \"${DL_PATH}\" ]; then\r\n cd \/mnt\/server\r\n\r\n MODIFIED_DOWNLOAD=`eval echo $(echo ${DL_PATH} | sed -e 's\/{{\/${\/g' -e 's\/}}\/}\/g')`\r\n curl -sSL -o ${SERVER_JARFILE} ${MODIFIED_DOWNLOAD}\r\nelse\r\n mkdir -p \/srv\/\r\n cd \/srv\/\r\n \r\n wget https:\/\/hub.spigotmc.org\/jenkins\/job\/BuildTools\/lastSuccessfulBuild\/artifact\/target\/BuildTools.jar\r\n \r\n java -jar BuildTools.jar --rev ${DL_VERSION}\r\n\r\n mv spigot-*.jar \/mnt\/server\/${SERVER_JARFILE}\r\nfi",
|
||||
"container": "debian:buster-slim",
|
||||
"entrypoint": "bash"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user