Update setup.sh
This commit is contained in:
@@ -203,7 +203,6 @@ setup_firegex() {
|
||||
export FIREGEX_PORT="5000"
|
||||
export DOCKER_MODE="true"
|
||||
|
||||
|
||||
echo "Installing Firegex using official installer..."
|
||||
sh -c "$(curl -sLf https://pwnzer0tt1.it/firegex.sh)"
|
||||
|
||||
@@ -233,9 +232,15 @@ start_game_services() {
|
||||
PACKMATE_AUTH=$(echo -n "$PACKMATE_WEB_LOGIN:$PACKMATE_WEB_PASSWORD" | base64)
|
||||
|
||||
# Resolve SERVICES_DIR to absolute path
|
||||
if [ "${SERVICES_DIR:0:1}" != "/" ]; then
|
||||
SERVICES_DIR="$ROOT_DIR/$SERVICES_DIR"
|
||||
fi
|
||||
case "$SERVICES_DIR" in
|
||||
/*)
|
||||
# Already absolute path
|
||||
;;
|
||||
*)
|
||||
# Relative path, make it absolute
|
||||
SERVICES_DIR="$ROOT_DIR/$SERVICES_DIR"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ ! -d "$SERVICES_DIR" ]; then
|
||||
echo "Services directory $SERVICES_DIR does not exist, skipping game services startup."
|
||||
|
||||
Reference in New Issue
Block a user