diff --git a/ct/wireguard.sh b/ct/wireguard.sh index 8c0efa6de..7edace668 100644 --- a/ct/wireguard.sh +++ b/ct/wireguard.sh @@ -28,20 +28,19 @@ 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 update - $STD apt install -y git - msg_ok "Installed git" - fi - apt update - apt -y upgrade + + ensure_dependencies git + + msg_info "Updating LXC" + $STD apt update + $STD apt upgrade -y if [[ -d /etc/wgdashboard ]]; then sleep 2 cd /etc/wgdashboard/src - ./wgd.sh update - ./wgd.sh start + $STD ./wgd.sh update + $STD ./wgd.sh start fi + msg_ok "Updated LXC" msg_ok "Updated successfully!" exit } diff --git a/install/alpine-wireguard-install.sh b/install/alpine-wireguard-install.sh index 8ae4ae1b0..8456f0365 100644 --- a/install/alpine-wireguard-install.sh +++ b/install/alpine-wireguard-install.sh @@ -54,7 +54,7 @@ if [[ "$INSTALL_WGD" =~ ^[Yy]$ ]]; then python3-dev msg_ok "Installed additional dependencies for WGDashboard" msg_info "Installing WGDashboard" - git clone -q https://github.com/donaldzou/WGDashboard.git /etc/wgdashboard + git clone -q https://github.com/WGDashboard/WGDashboard.git /etc/wgdashboard cd /etc/wgdashboard/src chmod u+x wgd.sh $STD ./wgd.sh install diff --git a/install/wireguard-install.sh b/install/wireguard-install.sh index 2e69f3e1a..b14d7e15f 100644 --- a/install/wireguard-install.sh +++ b/install/wireguard-install.sh @@ -25,7 +25,7 @@ msg_ok "Installed WireGuard" read -r -p "${TAB3}Would you like to add WGDashboard? " prompt if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then - git clone -q https://github.com/donaldzou/WGDashboard.git /etc/wgdashboard + git clone -q https://github.com/WGDashboard/WGDashboard.git /etc/wgdashboard msg_info "Installing WGDashboard" cd /etc/wgdashboard/src