{ "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", "meta": { "version": "PTDL_v2", "update_url": null }, "exported_at": "2024-05-25T16:04:02+02:00", "name": "SA-MP", "author": "josdekurk@gmail.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).", "features": null, "docker_images": { "ARM64": "quintenqvd\/pterodactyl_images:box86", "AMD64": "ghcr.io\/parkervcp\/games:samp" }, "file_denylist": [], "startup": "$(if [ \"${ARCH}\" == \"arm64\" ]; then echo -n \"box86 .\/samp03svr\"; else echo -n \".\/samp03svr\"; fi)", "config": { "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}", "startup": "{\r\n \"done\": \"Started server on \"\r\n}", "logs": "{}", "stop": "^C" }, "scripts": { "installation": { "script": "#!\/bin\/bash\r\n\r\n#R2-2-1\r\n\r\ncd \/tmp || exit\r\necho \"running: curl -sSL -o samp.tar.gz https:\/\/gta-multiplayer.cz\/downloads\/samp037svr_${VERSION}.tar.gz\"\r\ncurl -sSL -o samp.tar.gz https:\/\/gta-multiplayer.cz\/downloads\/samp037svr_${VERSION}.tar.gz\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 \"-----------------------------------------\"", "container": "ghcr.io\/parkervcp\/installers:debian", "entrypoint": "bash" } }, "variables": [ { "name": "Uname", "description": "Are you on ARM64 or AMD64", "env_variable": "ARCH", "default_value": "arm64", "user_viewable": false, "user_editable": false, "rules": "required|in:arm64,amd64", "field_type": "text" }, { "name": "Version", "description": "Example: if the download url is https:\/\/gta-multiplayer.cz\/downloads\/samp037svr_R2-2-1.tar.gz then the variable should be: `R2-2-1`", "env_variable": "Version", "default_value": "R2-2-1", "user_viewable": true, "user_editable": true, "rules": "required|string|max:20", "field_type": "text" }, { "name": "Rcon password", "description": "The password used for rcon", "env_variable": "RCON_PASS", "default_value": "", "user_viewable": true, "user_editable": true, "rules": "required|string|max:32", "field_type": "text" } ] }