arkserver/install-lgsm.sh

18 lines
312 B
Bash
Raw Normal View History

2024-04-28 17:27:24 +02:00
#!/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
)