17 lines
312 B
Bash
Executable file
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
|
|
)
|