arkserver/install-lgsm.sh
2024-04-28 15:27:24 +00:00

17 lines
312 B
Bash
Executable file

#!/bin/bash
relative_path="$(dirname "$0")"
if ! source "$relative_path/.env"; then
echo "Cannot source .env file, exiting."
exit 1
fi
(cd "$LGSM_ROOT" &&
curl -Lo linuxgsm.sh https://linuxgsm.sh &&
chmod +x linuxgsm.sh &&
./linuxgsm.sh arkserver &&
rm linuxgsm.sh &&
./arkserver install
)