diff --git a/setup/wireguard-install.sh b/setup/wireguard-install.sh index 2309f036..3524fef9 100644 --- a/setup/wireguard-install.sh +++ b/setup/wireguard-install.sh @@ -91,7 +91,11 @@ pip install icmplib &>/dev/null echo -e "${CM}${CL} \r" echo -en "${GN} Installing WGDashboard... " -git clone -b v3.0.5 https://github.com/donaldzou/WGDashboard.git /ect/wgdashboard &>/dev/null +WGDREL=$(curl -s https://api.github.com/repos/donaldzou/WGDashboard/releases/latest \ +| grep "tag_name" \ +| awk '{print substr($2, 2, length($2)-3) }') \ + +git clone -b ${WGDREL} https://github.com/donaldzou/WGDashboard.git /ect/wgdashboard &>/dev/null cd /ect/wgdashboard/src sudo chmod u+x wgd.sh sudo ./wgd.sh install &>/dev/null