From 74b74e20f0e2130a65faea92a91737f6ca3036ff Mon Sep 17 00:00:00 2001 From: ilyastar9999 Date: Tue, 2 Dec 2025 19:09:27 +0300 Subject: [PATCH] Update setup.sh --- setuper/setup.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/setuper/setup.sh b/setuper/setup.sh index 2995454..99191d6 100644 --- a/setuper/setup.sh +++ b/setuper/setup.sh @@ -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."