Last active
March 3, 2018 20:03
-
-
Save Azoraqua/2911120724b08cd03f13847fe6d03626 to your computer and use it in GitHub Desktop.
Pterodactyl Panel - Egg Template - GMOD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", | |
"meta": { | |
"version": "PTDL_v1" | |
}, | |
"exported_at": "2018-03-03T14:41:28-05:00", | |
"name": "GMOD-@ID@", | |
"author": "[email protected]", | |
"description": "Garry's Mod server for @PLAYERS@ players.", | |
"image": "quay.io\/pterodactyl\/core:source", | |
"startup": ".\/srcds_run -game garrysmod -console -port {{SERVER_PORT}} +ip 0.0.0.0 +map {{SRCDS_MAP}} -strictportbind -norestart +maxplayers {{MAX_PLAYERS}}", | |
"config": { | |
"files": "{}", | |
"startup": "{\r\n \"done\": \"Garry's Mod Server is started.\",\r\n \"userInteraction\": []\r\n}", | |
"logs": "{\r\n \"custom\": true,\r\n \"location\": \"logs\/latest.log\"\r\n}", | |
"stop": "quit" | |
}, | |
"scripts": { | |
"installation": { | |
"script": "#!\/bin\/bash\r\n# Garry's Mod Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt -y update\r\napt -y --no-install-recommends install curl lib32gcc1 ca-certificates\r\n\r\ncd \/tmp\r\ncurl -sSL -o steamcmd.tar.gz http:\/\/media.steampowered.com\/installer\/steamcmd_linux.tar.gz\r\n\r\nmkdir -p \/mnt\/server\/steamcmd\r\ntar -xzvf steamcmd.tar.gz -C \/mnt\/server\/steamcmd\r\ncd \/mnt\/server\/steamcmd\r\n\r\n# SteamCMD fails otherwise for some reason, even running as root.\r\n# This is changed at the end of the install process anyways.\r\nchown -R root:root \/mnt\r\n\r\nexport HOME=\/mnt\/server\r\n.\/steamcmd.sh +login anonymous +force_install_dir \/mnt\/server +app_update 4020 +quit\r\n\r\nmkdir -p \/mnt\/server\/.steam\/sdk32\r\ncp -v linux32\/steamclient.so ..\/.steam\/sdk32\/steamclient.so\r\n\r\nrm \/tmp\/steamcmd.tar.gz", | |
"container": "ubuntu:16.04", | |
"entrypoint": "bash" | |
} | |
}, | |
"variables": [ | |
{ | |
"name": "Map", | |
"description": "The default map for the server.", | |
"env_variable": "MAP", | |
"default_value": "gm_flatgrass", | |
"user_viewable": 1, | |
"user_editable": 1, | |
"rules": "required|string|alpha_dash" | |
}, | |
{ | |
"name": "Max Players", | |
"description": "The maximum amount of players for the server.", | |
"env_variable": "MAX_PLAYERS", | |
"default_value": "@PLAYERS@", | |
"user_viewable": 1, | |
"user_editable": 0, | |
"rules": "required|string|max:20" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment