From 02a1a732f8336596f1b53228a6860a84f4f7f111 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Tue, 9 Sep 2025 16:48:12 +0200 Subject: [PATCH] WGDashboard: Revert back to old update method (#7500) * Revert back to git clone * Add git to sh --- ct/wireguard.sh | 6 ++++++ install/wireguard-install.sh | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ct/wireguard.sh b/ct/wireguard.sh index 430a50fa6..857fd51b7 100644 --- a/ct/wireguard.sh +++ b/ct/wireguard.sh @@ -28,6 +28,12 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi + if ! dpkg -s git >/dev/null 2>&1; then + msg_info "Installing git" + $STD apt-get update + $STD apt-get install -y git + msg_ok "Installed git" + fi apt-get update apt-get -y upgrade if [[ -d /etc/wgdashboard ]]; then diff --git a/install/wireguard-install.sh b/install/wireguard-install.sh index 32bd34371..bee1e96e0 100644 --- a/install/wireguard-install.sh +++ b/install/wireguard-install.sh @@ -13,6 +13,10 @@ setting_up_container network_check update_os +msg_info "Installing Dependencies" +$STD apt-get install -y git +msg_ok "Installed Dependencies" + msg_info "Installing WireGuard" $STD apt-get install -y wireguard wireguard-tools net-tools iptables DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confnew" install -y iptables-persistent &>/dev/null @@ -21,7 +25,7 @@ msg_ok "Installed WireGuard" read -r -p "${TAB3}Would you like to add WGDashboard? " prompt if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then - fetch_and_deploy_gh_release "wgdashboard" "donaldzou/WGDashboard" "tarball" "latest" "/etc/wgdashboard" + git clone -q https://github.com/donaldzou/WGDashboard.git /etc/wgdashboard msg_info "Installing WGDashboard" cd /etc/wgdashboard/src