From 0fab52a7a475434953de96b3959d3022561c2d82 Mon Sep 17 00:00:00 2001 From: Arvin <62139570+wnlen@users.noreply.github.com> Date: Fri, 20 Mar 2026 23:35:39 +0800 Subject: [PATCH] Update generate_config.sh --- scripts/generate_config.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/generate_config.sh b/scripts/generate_config.sh index d0a7549..a7796f6 100644 --- a/scripts/generate_config.sh +++ b/scripts/generate_config.sh @@ -98,10 +98,13 @@ apply_controller_to_config() { if [ "$EXTERNAL_CONTROLLER_ENABLED" = "true" ]; then upsert_yaml_kv_local "$file" "external-controller" "$EXTERNAL_CONTROLLER" - mkdir -p "$RUNTIME_DIR" - ln -sfn "$PROJECT_DIR/dashboard/public" "$RUNTIME_DIR/ui" + local mihomo_home + mihomo_home="${HOME:-/root}/.config/mihomo" - upsert_yaml_kv_local "$file" "external-ui" "$RUNTIME_DIR/ui" + mkdir -p "$mihomo_home" + ln -sfn "$PROJECT_DIR/dashboard/public" "$mihomo_home/ui" + + upsert_yaml_kv_local "$file" "external-ui" "$mihomo_home/ui" fi }