2019-07-22 08:36:21 +08:00
{
"_comment" : "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO" ,
"meta" : {
2023-02-08 21:46:44 +08:00
"version" : "PTDL_v2" ,
"update_url" : null
2019-07-22 08:36:21 +08:00
} ,
2023-10-20 00:53:59 +08:00
"exported_at" : "2023-10-19T18:53:04+02:00" ,
2019-07-22 08:36:21 +08:00
"name" : "SA-MP" ,
"author" : "bl4ckspr4y@protonmail.com" ,
"description" : "SA-MP is a free Massively Multiplayer Online game mod for the PC version of Rockstar Games Grand Theft Auto: San Andreas (tm)." ,
2023-02-08 21:46:44 +08:00
"features" : null ,
"docker_images" : {
"Samp" : "ghcr.io\/parkervcp\/games:samp"
} ,
"file_denylist" : [ ] ,
2019-07-22 08:36:21 +08:00
"startup" : ".\/samp03svr" ,
"config" : {
2023-02-08 22:14:49 +08:00
"files" : "{\r\n \"server.cfg\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"port\": \"port {{server.build.default.port}}\",\r\n \"rcon_password\": \"rcon_password {{server.build.env.RCON_PASS}}\"\r\n }\r\n }\r\n}" ,
2023-02-08 21:46:44 +08:00
"startup" : "{\r\n \"done\": \"Started server on \"\r\n}" ,
"logs" : "{}" ,
"stop" : "^^C"
2019-07-22 08:36:21 +08:00
} ,
"scripts" : {
"installation" : {
2024-04-23 07:39:27 +08:00
"script" : "#!\/bin\/bash\r\n\r\n# Check if VERSION is set and starts with an uppercase \"R\"\r\nif [[ -n \"$VERSION\" && \"$VERSION\" == R* ]]; then\r\n VERSION=\"0.3.7\"\r\n echo \"Updated VERSION: $VERSION\"\r\nfi\r\n\r\ncd \/tmp || exit\r\necho \"running: curl -sSL -o samp.tar.gz https:\/\/github.com\/Se8870\/SAMP-File-Archive\/blob\/master\/archives\/${VERSION}.tar.gz?raw=true\"\r\ncurl -sSL -o samp.tar.gz https:\/\/github.com\/Se8870\/SAMP-File-Archive\/blob\/master\/archives\/${VERSION}.tar.gz?raw=true\r\n\r\nmkdir -p \/mnt\/server\r\ntar -xzvf samp.tar.gz --strip-components=1 -C \/mnt\/server\/\r\n\r\ncd \/mnt\/server || exit\r\n\r\nsed -i '3d' \/mnt\/server\/server.cfg\r\necho \"rcon_password ${RCON_PASS}\" >> \/mnt\/server\/server.cfg\r\n\r\nchown -R root:root \/mnt\r\n\r\nexport HOME=\/mnt\/server\r\n\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"" ,
2023-02-08 21:46:44 +08:00
"container" : "ghcr.io\/parkervcp\/installers:debian" ,
2019-07-22 08:36:21 +08:00
"entrypoint" : "bash"
}
} ,
2023-02-08 21:46:44 +08:00
"variables" : [
{
"name" : "Version" ,
2024-04-23 07:39:27 +08:00
"description" : "Example: if the download url is https:\/\/github.com\/Se8870\/SAMP-File-Archive\/blob\/master\/archives\/samp037svr_R3.tar.gz?raw=true then the variable should be: `samp037svr_R3`\n Please refer to https:\/\/github.com\/Se8870\/SAMP-File-Archive?tab=readme-ov-file#server-archive for version naming." ,
2023-02-08 21:46:44 +08:00
"env_variable" : "Version" ,
2024-04-23 07:39:27 +08:00
"default_value" : "samp037svr_R3" ,
2023-02-08 21:46:44 +08:00
"user_viewable" : true ,
"user_editable" : true ,
"rules" : "required|string|max:32" ,
"field_type" : "text"
} ,
{
"name" : "Rcon password" ,
2023-02-08 22:14:49 +08:00
"description" : "The password used for rcon" ,
2023-02-08 21:46:44 +08:00
"env_variable" : "RCON_PASS" ,
"default_value" : "" ,
"user_viewable" : true ,
"user_editable" : true ,
"rules" : "required|string|max:32" ,
"field_type" : "text"
}
]
2022-05-04 20:43:58 +08:00
}