From e094a42db885a52fb2740e945ff54edd36e48b6d Mon Sep 17 00:00:00 2001 From: XternA Date: Tue, 3 Sep 2024 13:12:16 +0100 Subject: [PATCH] Quick small fixes --- scripts/app-config.sh | 2 +- scripts/init.sh | 2 +- scripts/shared-component.sh | 2 +- start.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/app-config.sh b/scripts/app-config.sh index 6670501..71b0761 100644 --- a/scripts/app-config.sh +++ b/scripts/app-config.sh @@ -20,7 +20,7 @@ write_entry() { else if [ $is_new_app = true ]; then echo "" >> "$ENV_FILE" - unset is_new_app + is_new_app=false fi echo "$entry_name=$input" >> "$ENV_FILE" fi diff --git a/scripts/init.sh b/scripts/init.sh index d80b432..186272e 100644 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -5,7 +5,7 @@ LIMIT_TYPE="low" sh scripts/prerequisite.sh if [ ! -f "$ENV_SYSTEM_FILE" ]; then - $ARCH > /dev/null 2>&1 + $SYS_INFO > /dev/null 2>&1 echo >> "$ENV_SYSTEM_FILE" sh scripts/set-limit.sh "$LIMIT_TYPE" > /dev/null 2>&1 diff --git a/scripts/shared-component.sh b/scripts/shared-component.sh index 9a18d0f..a94ad12 100644 --- a/scripts/shared-component.sh +++ b/scripts/shared-component.sh @@ -14,7 +14,7 @@ export ENV_DEPLOY_FILE="$ROOT_DIR/.env.deploy" export JSON_FILE="$ROOT_DIR/apps.json" # Declared util component ---------------- -export ARCH="sh scripts/arch.sh" +export SYS_INFO="sh scripts/arch.sh" export CLEANUP="sh scripts/cleanup.sh" export APP_SELECTION="sh scripts/app-selection.sh" export APP_CONFIG="sh scripts/app-config.sh" diff --git a/start.sh b/start.sh index fb40ac6..d16aec7 100644 --- a/start.sh +++ b/start.sh @@ -3,7 +3,7 @@ . scripts/shared-component.sh sh scripts/init.sh -SYS_INFO=$($ARCH) +SYS_INFO=$($SYS_INFO) STATS="$(sh scripts/limits.sh "$($SET_LIMIT | awk '{print $NF}')")" COMPOSE="$(pwd)/compose"