mirror of
https://github.com/wnlen/clash-for-linux.git
synced 2026-03-21 22:06:45 +08:00
Update generate_config.sh
This commit is contained in:
@ -98,13 +98,14 @@ apply_controller_to_config() {
|
|||||||
if [ "$EXTERNAL_CONTROLLER_ENABLED" = "true" ]; then
|
if [ "$EXTERNAL_CONTROLLER_ENABLED" = "true" ]; then
|
||||||
upsert_yaml_kv_local "$file" "external-controller" "$EXTERNAL_CONTROLLER"
|
upsert_yaml_kv_local "$file" "external-controller" "$EXTERNAL_CONTROLLER"
|
||||||
|
|
||||||
local mihomo_home
|
local ui_dir
|
||||||
mihomo_home="${HOME:-/root}/.config/mihomo"
|
ui_dir="$RUNTIME_DIR/ui"
|
||||||
|
|
||||||
mkdir -p "$mihomo_home"
|
rm -rf "$ui_dir"
|
||||||
ln -sfn "$PROJECT_DIR/dashboard/public" "$mihomo_home/ui"
|
mkdir -p "$ui_dir"
|
||||||
|
cp -a "$PROJECT_DIR/dashboard/public/." "$ui_dir/"
|
||||||
|
|
||||||
upsert_yaml_kv_local "$file" "external-ui" "$mihomo_home/ui"
|
upsert_yaml_kv_local "$file" "external-ui" "$ui_dir"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user