Skip to content

Commit 4983e76

Browse files
authored
Merge pull request #2 from CH3CHO/fix/builtin-nacos
fix: Fix re-start issue when using built-in nacos
2 parents 66cd84a + 776db33 commit 4983e76

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

bin/shutdown.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ ROOT=$(dirname -- "$(pwd -P)")
1919
COMPOSE_ROOT="$ROOT/compose"
2020
cd - > /dev/null
2121

22-
cd "$COMPOSE_ROOT" && docker compose -p higress down --remove-orphans
22+
source $COMPOSE_ROOT/.env
23+
cd "$COMPOSE_ROOT" && COMPOSE_PROFILES="$COMPOSE_PROFILES" && docker compose -p higress down --remove-orphans

bin/startup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ if [ ! -f "$CONFIGURED_MARK" ]; then
2424
echo "Higress hasn't been configured yet. Please run \"$ROOT/bin/configure.sh\" first"
2525
exit -1
2626
fi
27+
28+
source $COMPOSE_ROOT/.env
2729
cd "$COMPOSE_ROOT" && COMPOSE_PROFILES="$COMPOSE_PROFILES" docker compose -p higress up -d
2830

2931
retVal=$?

0 commit comments

Comments
 (0)