eggs/game_eggs/gta/altv/egg-alt--v.json

73 lines
5.1 KiB
JSON
Raw Normal View History

2020-01-03 04:26:05 +08:00
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
2022-07-20 23:35:38 +08:00
"version": "PTDL_v2",
2021-01-23 13:42:33 +08:00
"update_url": null
2020-01-03 04:26:05 +08:00
},
2023-06-18 17:34:58 +08:00
"exported_at": "2023-06-18T11:34:24+02:00",
2020-01-03 04:26:05 +08:00
"name": "alt:V",
"author": "parker@parkervcp.com",
"description": "alt:V Multiplayer a third-party multiplayer modification for Grand Theft Auto: V",
2021-01-23 13:42:33 +08:00
"features": null,
2022-07-20 23:35:38 +08:00
"docker_images": {
2023-06-18 17:34:58 +08:00
"ALT:V": "ghcr.io\/parkervcp\/games:altv"
2022-07-20 23:35:38 +08:00
},
"file_denylist": [],
"startup": ".\/altv-server",
2020-01-03 04:26:05 +08:00
"config": {
2023-06-18 17:34:58 +08:00
"files": "{\r\n \"server.toml\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"host:\": \"host: 0.0.0.0\",\r\n \"port:\": \"port: {{server.build.default.port}}\",\r\n \"password:\": \"password: {{server.build.env.PASSWORD}}\",\r\n \"description:\": \"description: {{server.build.env.SERVER_DESC}}\"\r\n }\r\n }\r\n}",
2020-01-03 04:26:05 +08:00
"startup": "{\r\n \"done\": \"Server started\"\r\n}",
"logs": "{}",
"stop": "quit"
2020-01-03 04:26:05 +08:00
},
"scripts": {
"installation": {
2023-06-18 17:34:58 +08:00
"script": "#!\/bin\/bash\r\n#\r\n\r\napt update\r\napt install -y wget jq curl \r\n\r\ncd \/mnt\/server\r\nNEWVERSION=$(curl -sSL https:\/\/cdn.alt-mp.com\/server\/${BUILD}\/x64_linux\/update.json | jq -r .version)\r\n\r\n\r\nif [ -f \"\/mnt\/server\/altv-server\" ]; then\r\n CURRENTVERSION=$(cat update.json | jq -r .version)\r\n if [[ \"${CURRENTVERSION}\" == \"${NEWVERSION}\" ]]; then\r\n echo \"No update found\"\r\n exit 0\r\n fi\r\n echo \"Backing up version ${CURRENTVERSION}\"\r\n mkdir -p \/mnt\/server\/backup\/${CURRENTVERSION}\/data\r\n mv altv-server \/mnt\/server\/backup\/${CURRENTVERSION}\/\r\n cd \/mnt\/server\/data\r\n mv clothes.bin \/mnt\/server\/backup\/${CURRENTVERSION}\/data\r\n mv vehmodels.bin \/mnt\/server\/backup\/${CURRENTVERSION}\/data\r\n mv vehmods.bin \/mnt\/server\/backup\/${CURRENTVERSION}\/data\r\n mv pedmodels.bin \/mnt\/server\/backup\/${CURRENTVERSION}\/data\r\n mv weaponmodels.bin \/mnt\/server\/backup\/${CURRENTVERSION}\/data\r\n mv rpfdata.bin \/mnt\/server\/backup\/${CURRENTVERSION}\/data\r\n rm \/mnt\/server\/update.json\r\nfi\r\n\r\n\r\ncd \/mnt\/server\r\n\r\n\r\necho \"Installing version: ${NEWVERSION}\"\r\nwget -q https:\/\/cdn.alt-mp.com\/server\/${BUILD}\/x64_linux\/altv-server\r\nwget -q https:\/\/cdn.alt-mp.com\/server\/${BUILD}\/x64_linux\/update.json\r\nchmod +x .\/altv-server\r\n\r\n\r\nmkdir -p \/mnt\/server\/data\r\ncd \/mnt\/server\/data\r\n\r\nwget -q https:\/\/cdn.alt-mp.com\/data\/${BUILD}\/data\/vehmodels.bin\r\nwget -q https:\/\/cdn.alt-mp.com\/data\/${BUILD}\/data\/vehmods.bin\r\nwget -q https:\/\/cdn.alt-mp.com\/data\/${BUILD}\/data\/clothes.bin\r\nwget -q https:\/\/cdn.alt-mp.com\/data\/${BUILD}\/data\/pedmodels.bin\r\nwget -q https:\/\/cdn.alt-mp.com\/data\/${BUILD}\/data\/weaponmodels.bin\r\nwget -q https:\/\/cdn.alt-mp.com\/data\/${BUILD}\/data\/rpfdata.bin\r\n\r\n\r\n\r\n\r\ncd \/mnt\/server\r\nif [ ! -f \"\/mnt\/server\/server.toml\" ]; then\r\ncat << EOF >> server.toml\r\nname = 'alt:V Server'\r\nhost = '0.0.0.0'\r\nport = ${SERVER_PORT}\r\nplayers = 128\r\npassword = '${PASSWORD}'\r\nannounce = false\r\ntoken = 'YOUR_TOKEN'\r\ngamemode = 'Freeroam'\r\nwebsite = 'example.com'\r\nlanguage = 'en'\r\ndescription = '${SERVER_DESC}'\r\nmodules = []\r\nresources = []\r\nEOF\r\nfi\r\n\r\nmkdir -p resources\/\r\n\r\necho -e \"install complete\"",
"container": "debian:bullseye-slim",
2020-01-03 04:26:05 +08:00
"entrypoint": "bash"
}
},
"variables": [
{
"name": "ld lib path",
2021-01-23 13:42:33 +08:00
"description": "Needed to load modules correctly. Best left at default.",
2020-01-03 04:26:05 +08:00
"env_variable": "LD_LIBRARY_PATH",
"default_value": ".",
"user_viewable": false,
"user_editable": false,
2022-07-20 23:35:38 +08:00
"rules": "required|string|max:20",
"field_type": "text"
2020-01-03 04:26:05 +08:00
},
{
2021-01-23 13:42:33 +08:00
"name": "Release Branch",
"description": "The supported versions are release, rc, dev (default: release).\r\nIf you don't know what you are doing leave it on release",
2020-01-03 04:26:05 +08:00
"env_variable": "BUILD",
"default_value": "release",
"user_viewable": true,
"user_editable": true,
2023-06-18 17:34:58 +08:00
"rules": "required|string|in:release,rc,dev",
2022-07-20 23:35:38 +08:00
"field_type": "text"
2020-01-03 04:26:05 +08:00
},
{
"name": "Server Password",
"description": "The password to join the server",
"env_variable": "PASSWORD",
"default_value": "ChangeMe",
"user_viewable": true,
"user_editable": true,
2022-07-20 23:35:38 +08:00
"rules": "nullable|string|min:6",
"field_type": "text"
2020-01-03 04:26:05 +08:00
},
{
"name": "Server Description",
"description": "Description for the server.",
"env_variable": "SERVER_DESC",
"default_value": "A Pterodactyl Hosted Server",
"user_viewable": true,
"user_editable": true,
2022-07-20 23:35:38 +08:00
"rules": "required|string",
"field_type": "text"
2020-01-03 04:26:05 +08:00
}
]
2021-01-23 13:42:33 +08:00
}