From cf50ea32ff752a05c563f3944cbde9068f13e21e Mon Sep 17 00:00:00 2001 From: RaphaelCapone <44115221+RaphaelCapone@users.noreply.github.com> Date: Tue, 23 Apr 2024 02:39:27 +0300 Subject: [PATCH] Update egg-s-a--m-p.json Changing to a more legitimate "download center" link with all versioning backup. The current download website is a little bit shady, the more official one being sa-mp.mp which are made by the current maintainers of Open.MP project for GTA San Andreas. --- game_eggs/gta/samp/egg-s-a--m-p.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game_eggs/gta/samp/egg-s-a--m-p.json b/game_eggs/gta/samp/egg-s-a--m-p.json index 097d4322e..08a97bf55 100644 --- a/game_eggs/gta/samp/egg-s-a--m-p.json +++ b/game_eggs/gta/samp/egg-s-a--m-p.json @@ -22,7 +22,7 @@ }, "scripts": { "installation": { - "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:\/\/sampcenter.com\/download\/server\/linux\/${VERSION}.tar.gz\"\r\ncurl -sSL -o samp.tar.gz https:\/\/sampcenter.com\/download\/server\/linux\/${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 \"-----------------------------------------\"", + "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 \"-----------------------------------------\"", "container": "ghcr.io\/parkervcp\/installers:debian", "entrypoint": "bash" } @@ -30,9 +30,9 @@ "variables": [ { "name": "Version", - "description": "Example: if the download url is https:\/\/sampcenter.com\/download\/server\/linux\/0.3.7.tar.gz then the variable should be: `0.3.7`", + "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.", "env_variable": "Version", - "default_value": "0.3.7", + "default_value": "samp037svr_R3", "user_viewable": true, "user_editable": true, "rules": "required|string|max:32",