Skip to content

Commit 1df3efd

Browse files
authored
Fix eggs (pterodactyl#1224)
1 parent d2bc791 commit 1df3efd

File tree

5 files changed

+40
-12
lines changed

5 files changed

+40
-12
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
1414
* Permissions checking to determine if a user can see the task management page now works correctly.
1515
* Fixed `pterodactyl.environment_variables` to be used correctly for global environment variables. The wrong config variable name was being using previously.
1616
* Fixes tokens being sent to users when their account is created to actually work. Implements Laravel's internal token creation mechanisms rather than trying to do it custom.
17+
* Updates some eggs to ensure they have the correct data and will continue working down the road. Fixes autoupdating on some source servers and MC related download links.
1718

1819
### Changed
1920
* Attempting to upload a folder via the web file manager will now display a warning telling the user to use SFTP.

database/seeds/eggs/minecraft/egg-forge-minecraft.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"meta": {
44
"version": "PTDL_v1"
55
},
6-
"exported_at": "2018-02-27T00:57:04-06:00",
6+
"exported_at": "2018-06-25T15:47:07-04:00",
77
"name": "Forge Minecraft",
88
"author": "support@pterodactyl.io",
99
"description": "Minecraft Forge Server. Minecraft Forge is a modding API (Application Programming Interface), which makes it easier to create mods, and also make sure mods are compatible with each other.",
@@ -17,7 +17,7 @@
1717
},
1818
"scripts": {
1919
"installation": {
20-
"script": "#!\/bin\/ash\r\n# Forge Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napk update\r\napk add curl\r\n\r\nGET_VERSIONS=$(curl -sl http:\/\/files.minecraftforge.net\/maven\/net\/minecraftforge\/forge\/ | grep -A1 Latest | grep -o -e '[1]\\.[0-9][0-9]]\\?\\.\\?[0-9]\\?[0-9] - [0-9][0-9]\\.[0-9][0-9]\\.[0-9]\\?[0-9]\\.[0-9][0-9][0-9][0-9]')\r\nLATEST_VERSION=$(echo $GET_VERSIONS | sed 's\/ \/\/g')\r\n\r\ncd \/mnt\/server\r\n\r\ncurl -sS http:\/\/files.minecraftforge.net\/maven\/net\/minecraftforge\/forge\/$LATEST_VERSION\/forge-$LATEST_VERSION-installer.jar -o installer.jar\r\ncurl -sS http:\/\/files.minecraftforge.net\/maven\/net\/minecraftforge\/forge\/$LATEST_VERSION\/forge-$LATEST_VERSION-universal.jar -o server.jar\r\n\r\njava -jar installer.jar --installServer\r\nrm -rf installer.jar",
20+
"script": "#!\/bin\/ash\r\n# Forge Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napk update\r\napk add curl\r\n\r\nif [ -z \"$MC_VERSION\" ] || [ \"$MC_VERSION\" == \"latest\" ]; then\r\n FORGE_VERSION=$(curl -sl http:\/\/files.minecraftforge.net\/maven\/net\/minecraftforge\/forge\/ | grep -A1 Latest | grep -o -e '[1]\\.[0-9][0-9]]\\?\\.\\?[0-9]\\?[0-9] - [0-9][0-9]\\.[0-9][0-9]\\.[0-9]\\?[0-9]\\.[0-9][0-9][0-9][0-9]' | sed 's\/ \/\/g')\r\nelse\r\n FORGE_VERSION=$(curl -sl http:\/\/files.minecraftforge.net\/maven\/net\/minecraftforge\/forge\/index_$MC_VERSION.html | grep -A1 Latest | grep -o -e '[1]\\.[0-9][0-9]]\\?\\.\\?[0-9]\\?[0-9] - [0-9][0-9]\\.[0-9][0-9]\\.[0-9]\\?[0-9]\\.[0-9][0-9][0-9][0-9]' | sed 's\/ \/\/g')\r\nfi\r\n\r\ncd \/mnt\/server\r\n\r\necho -e \"\\nDownloading Forge Version $FORGE_VERSION\\n\"\r\ncurl -sS http:\/\/files.minecraftforge.net\/maven\/net\/minecraftforge\/forge\/$FORGE_VERSION\/forge-$FORGE_VERSION-installer.jar -o installer.jar\r\ncurl -sS http:\/\/files.minecraftforge.net\/maven\/net\/minecraftforge\/forge\/$FORGE_VERSION\/forge-$FORGE_VERSION-universal.jar -o $SERVER_JARFILE\r\n\r\necho -e \"\\nInstalling forge server usint the installer jar file.\\n\"\r\njava -jar installer.jar --installServer\r\n\r\necho -e \"\\nDeleting installer jar file and cleaning up.\\n\"\r\nrm -rf installer.jar",
2121
"container": "frolvlad\/alpine-oraclejdk8:cleaned",
2222
"entrypoint": "ash"
2323
}
@@ -31,6 +31,15 @@
3131
"user_viewable": 1,
3232
"user_editable": 1,
3333
"rules": "required|regex:\/^([\\w\\d._-]+)(\\.jar)$\/"
34+
},
35+
{
36+
"name": "Minecraft version",
37+
"description": "The version of minecraft that you want to run. Example (1.10.2).",
38+
"env_variable": "MC_VERSION",
39+
"default_value": "latest",
40+
"user_viewable": 1,
41+
"user_editable": 1,
42+
"rules": "required|string|max:20"
3443
}
3544
]
3645
}

database/seeds/eggs/minecraft/egg-vanilla-minecraft.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"meta": {
44
"version": "PTDL_v1"
55
},
6-
"exported_at": "2017-11-03T22:15:07-05:00",
6+
"exported_at": "2018-06-19T17:09:18-04:00",
77
"name": "Vanilla Minecraft",
88
"author": "support@pterodactyl.io",
99
"description": "Minecraft is a game about placing blocks and going on adventures. Explore randomly generated worlds and build amazing things from the simplest of homes to the grandest of castles. Play in Creative Mode with unlimited resources or mine deep in Survival Mode, crafting weapons and armor to fend off dangerous mobs. Do all this alone or with friends.",
@@ -17,8 +17,8 @@
1717
},
1818
"scripts": {
1919
"installation": {
20-
"script": "#!\/bin\/ash\r\n# Vanilla MC Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napk update\r\napk add curl\r\n\r\ncd \/mnt\/server\r\n\r\nLATEST_VERSION=`curl -s https:\/\/s3.amazonaws.com\/Minecraft.Download\/versions\/versions.json | grep -o \"[[:digit:]]\\.[0-9]*\\.[0-9]\" | head -n 1`\r\n\r\nif [ -z \"$VANILLA_VERSION\" ] || [ \"$VANILLA_VERSION\" == \"latest\" ]; then\r\n DL_VERSION=$LATEST_VERSION\r\nelse\r\n DL_VERSION=$VANILLA_VERSION\r\nfi\r\n\r\ncurl -o ${SERVER_JARFILE} https:\/\/s3.amazonaws.com\/Minecraft.Download\/versions\/${DL_VERSION}\/minecraft_server.${DL_VERSION}.jar",
21-
"container": "alpine:3.4",
20+
"script": "#!\/bin\/ash\r\n# Vanilla MC Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napk update\r\napk add curl jq\r\n\r\ncd \/mnt\/server\r\n\r\nLATEST_VERSION=`curl https:\/\/launchermeta.mojang.com\/mc\/game\/version_manifest.json | jq -r '.latest.release'`\r\n\r\nif [ -z \"$VANILLA_VERSION\" ] || [ \"$VANILLA_VERSION\" == \"latest\" ]; then\r\n MANIFEST_URL=$(curl https:\/\/launchermeta.mojang.com\/mc\/game\/version_manifest.json | jq .versions | jq -r '.[] | select(.id == \"'$LATEST_VERSION'\") | .url')\r\nelse\r\n MANIFEST_URL=$(curl https:\/\/launchermeta.mojang.com\/mc\/game\/version_manifest.json | jq .versions | jq -r '.[] | select(.id == \"'$VANILLA_VERSION'\") | .url')\r\nfi\r\n\r\nDOWNLOAD_URL=`curl $MANIFEST_URL | jq .downloads.server | jq -r '. | .url'`\r\n\r\ncurl -o ${SERVER_JARFILE} $DOWNLOAD_URL",
21+
"container": "alpine:3.7",
2222
"entrypoint": "ash"
2323
}
2424
},
@@ -39,7 +39,7 @@
3939
"default_value": "latest",
4040
"user_viewable": 1,
4141
"user_editable": 1,
42-
"rules": "required|string|between:3,7"
42+
"rules": "required|string|between:3,15"
4343
}
4444
]
45-
}
45+
}

database/seeds/eggs/source-engine/egg-counter--strike--global-offensive.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"meta": {
44
"version": "PTDL_v1"
55
},
6-
"exported_at": "2018-01-21T16:59:47-06:00",
6+
"exported_at": "2018-06-19T07:46:06-04:00",
77
"name": "Counter-Strike: Global Offensive",
88
"author": "support@pterodactyl.io",
99
"description": "Counter-Strike: Global Offensive is a multiplayer first-person shooter video game developed by Hidden Path Entertainment and Valve Corporation.",
1010
"image": "quay.io\/pterodactyl\/core:source",
1111
"startup": ".\/srcds_run -game csgo -console -port {{SERVER_PORT}} +ip 0.0.0.0 +map {{SRCDS_MAP}} -strictportbind -norestart +sv_setsteamaccount {{STEAM_ACC}}",
1212
"config": {
1313
"files": "{}",
14-
"startup": "{\r\n \"done\": \"gameserver Steam ID\",\r\n \"userInteraction\": []\r\n}",
14+
"startup": "{\r\n \"done\": \"Connection to Steam servers successful\",\r\n \"userInteraction\": []\r\n}",
1515
"logs": "{\r\n \"custom\": true,\r\n \"location\": \"logs\/latest.log\"\r\n}",
1616
"stop": "quit"
1717
},
@@ -40,6 +40,15 @@
4040
"user_viewable": 1,
4141
"user_editable": 1,
4242
"rules": "required|string|alpha_num|size:32"
43+
},
44+
{
45+
"name": "Source AppID",
46+
"description": "Required for game to update on server restart. Do not modify this.",
47+
"env_variable": "SRCDS_APPID",
48+
"default_value": "740",
49+
"user_viewable": 0,
50+
"user_editable": 0,
51+
"rules": "required|string|max:20"
4352
}
4453
]
45-
}
54+
}

database/seeds/eggs/source-engine/egg-garrys-mod.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"meta": {
44
"version": "PTDL_v1"
55
},
6-
"exported_at": "2018-01-21T16:59:47-06:00",
6+
"exported_at": "2018-06-19T07:46:27-04:00",
77
"name": "Garrys Mod",
88
"author": "support@pterodactyl.io",
99
"description": "Garrys Mod, is a sandbox physics game created by Garry Newman, and developed by his company, Facepunch Studios.",
@@ -40,6 +40,15 @@
4040
"user_viewable": 1,
4141
"user_editable": 1,
4242
"rules": "required|string|alpha_num|size:32"
43+
},
44+
{
45+
"name": "Source AppID",
46+
"description": "Required for game to update on server restart. Do not modify this.",
47+
"env_variable": "SRCDS_APPID",
48+
"default_value": "4020",
49+
"user_viewable": 0,
50+
"user_editable": 0,
51+
"rules": "required|string|max:20"
4352
}
4453
]
45-
}
54+
}

0 commit comments

Comments
 (0)