Skip to content

Commit c42605e

Browse files
committed
Merge branch 'develop' of https://github.com/Pterodactyl/Panel into develop
2 parents eeb4d88 + b6d18b0 commit c42605e

File tree

6 files changed

+42
-12
lines changed

6 files changed

+42
-12
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
77
### Added
88
* Nodes can now be put into maintenance mode to deny access to servers temporarily.
99
* Basic statistics about your panel are now available in the Admin CP.
10+
* Added support for using a MySQL socket location for connections rather than a TCP connection. Set a `DB_SOCKET` variable in your `.env` file to use this.
1011

1112
### Fixed
1213
* Hitting Ctrl+Z when editing a file on the web now works as expected.
1314
* Logo now links to the correct location on all pages.
1415
* Permissions checking to determine if a user can see the task management page now works correctly.
1516
* Fixed `pterodactyl.environment_variables` to be used correctly for global environment variables. The wrong config variable name was being using previously.
1617
* 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.
18+
* 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.
1719

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

config/database.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
'mysql' => [
3535
'driver' => 'mysql',
3636
'host' => env('DB_HOST', '127.0.0.1'),
37+
'unix_socket' => env('DB_SOCKET'),
3738
'port' => env('DB_PORT', '3306'),
3839
'database' => env('DB_DATABASE', 'panel'),
3940
'username' => env('DB_USERNAME', 'pterodactyl'),

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)