mirror of
https://github.com/pelican-dev/panel.git
synced 2025-12-16 13:01:20 +01:00
Update paper egg to use their new domain (#1986)
Co-authored-by: RMartinOscar <40749467+RMartinOscar@users.noreply.github.com>
This commit is contained in:
parent
760aaf9bfb
commit
b13fcfd644
@ -2,7 +2,7 @@ _comment: 'DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL'
|
|||||||
meta:
|
meta:
|
||||||
version: PLCN_v3
|
version: PLCN_v3
|
||||||
update_url: 'https://github.com/pelican-dev/panel/raw/main/database/Seeders/eggs/minecraft/egg-paper.yaml'
|
update_url: 'https://github.com/pelican-dev/panel/raw/main/database/Seeders/eggs/minecraft/egg-paper.yaml'
|
||||||
exported_at: '2025-10-31T12:25:02+00:00'
|
exported_at: '2025-12-11T12:51:20+00:00'
|
||||||
name: Paper
|
name: Paper
|
||||||
author: parker@example.com
|
author: parker@example.com
|
||||||
uuid: 5da37ef6-58da-4169-90a6-e683e1721247
|
uuid: 5da37ef6-58da-4169-90a6-e683e1721247
|
||||||
@ -48,8 +48,8 @@ scripts:
|
|||||||
echo -e "Using supplied download url: ${DL_PATH}"
|
echo -e "Using supplied download url: ${DL_PATH}"
|
||||||
DOWNLOAD_URL=`eval echo $(echo ${DL_PATH} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
|
DOWNLOAD_URL=`eval echo $(echo ${DL_PATH} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
|
||||||
else
|
else
|
||||||
VER_EXISTS=`curl -s https://api.papermc.io/v2/projects/${PROJECT} | jq -r --arg VERSION $MINECRAFT_VERSION '.versions[] | contains($VERSION)' | grep -m1 true`
|
VER_EXISTS=`curl -s https://fill.papermc.io/v3/projects/${PROJECT} | jq -r --arg VERSION $MINECRAFT_VERSION '.versions | any(.[]; index($VERSION))' | grep -m1 true`
|
||||||
LATEST_VERSION=`curl -s https://api.papermc.io/v2/projects/${PROJECT} | jq -r '.versions' | jq -r '.[-1]'`
|
LATEST_VERSION=`curl -s https://fill.papermc.io/v3/projects/${PROJECT} | jq -r '.versions | to_entries | .[0].value[0]'`
|
||||||
|
|
||||||
if [ "${VER_EXISTS}" == "true" ]; then
|
if [ "${VER_EXISTS}" == "true" ]; then
|
||||||
echo -e "Version is valid. Using version ${MINECRAFT_VERSION}"
|
echo -e "Version is valid. Using version ${MINECRAFT_VERSION}"
|
||||||
@ -58,8 +58,8 @@ scripts:
|
|||||||
MINECRAFT_VERSION=${LATEST_VERSION}
|
MINECRAFT_VERSION=${LATEST_VERSION}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BUILD_EXISTS=`curl -s https://api.papermc.io/v2/projects/${PROJECT}/versions/${MINECRAFT_VERSION} | jq -r --arg BUILD ${BUILD_NUMBER} '.builds[] | tostring | contains($BUILD)' | grep -m1 true`
|
BUILD_EXISTS=`curl -s https://fill.papermc.io/v3/projects/${PROJECT}/versions/${MINECRAFT_VERSION} | jq -r --arg BUILD ${BUILD_NUMBER} '.builds[] | tostring | contains($BUILD)' | grep -m1 true`
|
||||||
LATEST_BUILD=`curl -s https://api.papermc.io/v2/projects/${PROJECT}/versions/${MINECRAFT_VERSION} | jq -r '.builds' | jq -r '.[-1]'`
|
LATEST_BUILD=`curl -s https://fill.papermc.io/v3/projects/${PROJECT}/versions/${MINECRAFT_VERSION} | jq -r '.builds' | jq -r '.[0]'`
|
||||||
|
|
||||||
if [ "${BUILD_EXISTS}" == "true" ]; then
|
if [ "${BUILD_EXISTS}" == "true" ]; then
|
||||||
echo -e "Build is valid for version ${MINECRAFT_VERSION}. Using build ${BUILD_NUMBER}"
|
echo -e "Build is valid for version ${MINECRAFT_VERSION}. Using build ${BUILD_NUMBER}"
|
||||||
@ -68,13 +68,11 @@ scripts:
|
|||||||
BUILD_NUMBER=${LATEST_BUILD}
|
BUILD_NUMBER=${LATEST_BUILD}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
JAR_NAME=${PROJECT}-${MINECRAFT_VERSION}-${BUILD_NUMBER}.jar
|
|
||||||
|
|
||||||
echo "Version being downloaded"
|
echo "Version being downloaded"
|
||||||
|
echo -e "Project: ${PROJECT}"
|
||||||
echo -e "MC Version: ${MINECRAFT_VERSION}"
|
echo -e "MC Version: ${MINECRAFT_VERSION}"
|
||||||
echo -e "Build: ${BUILD_NUMBER}"
|
echo -e "Build: ${BUILD_NUMBER}"
|
||||||
echo -e "JAR Name of Build: ${JAR_NAME}"
|
DOWNLOAD_URL=`curl -s https://fill.papermc.io/v3/projects/${PROJECT}/versions/${MINECRAFT_VERSION}/builds/${BUILD_NUMBER} | jq -r '.downloads."server:default".url'`
|
||||||
DOWNLOAD_URL=https://api.papermc.io/v2/projects/${PROJECT}/versions/${MINECRAFT_VERSION}/builds/${BUILD_NUMBER}/downloads/${JAR_NAME}
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd /mnt/server
|
cd /mnt/server
|
||||||
@ -89,7 +87,7 @@ scripts:
|
|||||||
|
|
||||||
if [ ! -f server.properties ]; then
|
if [ ! -f server.properties ]; then
|
||||||
echo -e "Downloading MC server.properties"
|
echo -e "Downloading MC server.properties"
|
||||||
curl -o server.properties https://raw.githubusercontent.com/pelican-eggs/eggs/master/minecraft/java/server.properties
|
curl -o server.properties https://raw.githubusercontent.com/pelican-eggs/minecraft/refs/heads/main/java/server.properties
|
||||||
fi
|
fi
|
||||||
container: 'ghcr.io/pelican-eggs/installers:alpine'
|
container: 'ghcr.io/pelican-eggs/installers:alpine'
|
||||||
entrypoint: ash
|
entrypoint: ash
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user