Add Web UI installation for Metacubexd, Yacd, and Zashboard in setup script

This commit is contained in:
2026-02-15 18:30:31 +03:00
parent eabe15fa91
commit 890cfa3782

View File

@@ -43,6 +43,7 @@ BIN_DIR="/usr/local/bin"
CONF_DIR="/etc/mihomo" CONF_DIR="/etc/mihomo"
LOG_DIR="/var/log/mihomo" LOG_DIR="/var/log/mihomo"
INIT_DIR="/etc/init.d" INIT_DIR="/etc/init.d"
UI_DIR="/etc/mihomo/ui"
# ========================================== # ==========================================
# 2. SYSTEM PREP & DEPENDENCIES # 2. SYSTEM PREP & DEPENDENCIES
@@ -146,6 +147,40 @@ chown -R mihomo:mihomo "$CONF_DIR"
mkdir -p "$LOG_DIR" mkdir -p "$LOG_DIR"
chown -R mihomo:mihomo "$LOG_DIR" chown -R mihomo:mihomo "$LOG_DIR"
# ==========================================
# 6. INSTALLING WEB UI
# ==========================================
echo ">>> [6/9] Installing Web UIs (Metacubexd, Yacd, Zashboard)..."
mkdir -p "$UI_DIR"
cd "$UI_DIR"
# Metacubexd
if [ ! -d "metacubexd" ]; then
echo "Downloading Metacubexd..."
wget -qO metacubexd.zip "https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip"
unzip -q -o metacubexd.zip
mv metacubexd-gh-pages metacubexd
rm metacubexd.zip
fi
# Yacd
if [ ! -d "yacd" ]; then
echo "Downloading Yacd..."
wget -qO yacd.zip "https://github.com/haishanh/yacd/archive/refs/heads/gh-pages.zip"
unzip -q -o yacd.zip
mv yacd-gh-pages yacd
rm yacd.zip
fi
# Zashboard
if [ ! -d "zashboard" ]; then
echo "Downloading Zashboard..."
wget -qO zashboard.zip "https://github.com/zephyruso/zashboard/archive/refs/heads/gh-pages.zip"
unzip -q -o zashboard.zip
mv zashboard-gh-pages zashboard
rm zashboard.zip
fi
# ========================================== # ==========================================
# 6. CONFIGURATION & OPENRC SERVICES # 6. CONFIGURATION & OPENRC SERVICES
# ========================================== # ==========================================