SA-MP
SA-MP is a free Massively Multiplayer Online game mod for the PC version of Rockstar Games Grand Theft Auto: San Andreas (tm).
Install
- Installer image
- ghcr.io/ptero-eggs/installers:debian
- Install script
- 29 lines
Image
- Samp ghcr.io/ptero-eggs/games:samp
Startup
The Panel runs this command to start the server. It replaces each variable in the command with the value of that variable.
2 variables
Startup command
./samp03svrExample: if the download url is https://sampcenter.com/download/server/linux/0.3.7.tar.gz then the variable should be: `0.3.7`
VersionUsers can edit
required|string|max:32
The password used for rcon
RCON_PASSUsers can edit
required|string|max:32A value is required.
Wings
- Stop command
- ^^C
- Running when the console shows
- Started server on
Files Wings edits
Wings sets these values in these files before each start.
server.cfg file
- port
- port {{server.build.default.port}}
- rcon_password
- rcon_password {{server.build.env.RCON_PASS}}
Readme
SA:MP
The SA:MP GTA San Andreas dedicated server
Problem with this egg?
Open an issue on GitHub. Include your Panel and Wings versions.
Install script 29 lines bash in ghcr.io/ptero-eggs/installers:debian Show Hide
#!/bin/bash
# Check if VERSION is set and starts with an uppercase "R"
if [[ -n "$VERSION" && "$VERSION" == R* ]]; then
VERSION="0.3.7"
echo "Updated VERSION: $VERSION"
fi
cd /tmp || exit
echo "running: curl -sSL -o samp.tar.gz https://sampcenter.com/download/server/linux/${VERSION}.tar.gz"
curl -sSL -o samp.tar.gz https://sampcenter.com/download/server/linux/${VERSION}.tar.gz
mkdir -p /mnt/server
tar -xzvf samp.tar.gz --strip-components=1 -C /mnt/server/
cd /mnt/server || exit
sed -i '3d' /mnt/server/server.cfg
echo "rcon_password ${RCON_PASS}" >> /mnt/server/server.cfg
chown -R root:root /mnt
export HOME=/mnt/server
## install end
echo "-----------------------------------------"
echo "Installation completed..."
echo "-----------------------------------------"