Update wireguard-install.sh

This commit is contained in:
tteckster 2022-03-18 12:58:32 -04:00 committed by GitHub
parent 06349833df
commit 51b2d151e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -91,7 +91,11 @@ pip install icmplib &>/dev/null
echo -e "${CM}${CL} \r" echo -e "${CM}${CL} \r"
echo -en "${GN} Installing WGDashboard... " 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 cd /ect/wgdashboard/src
sudo chmod u+x wgd.sh sudo chmod u+x wgd.sh
sudo ./wgd.sh install &>/dev/null sudo ./wgd.sh install &>/dev/null