1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-06-30 22:50:14 +02:00

Update wgd.sh

This commit is contained in:
Donald Cheng Hong Zou 2021-09-03 14:40:57 -04:00
parent 0b4b48ceae
commit 7e39eedf35

View File

@ -3,6 +3,7 @@
app_name="dashboard.py"
app_official_name="Wireguard Dashboard"
dashes='------------------------------------------------------------'
equals='============================================================'
help () {
printf "<Wireguard Dashboard> by Donald Zou - https://github.com/donaldzou \n"
printf "Usage: ./wgd.sh <option>"
@ -18,7 +19,6 @@ help () {
}
install_wgd(){
printf "%s\n" "$dashes"
# Check Python3 version
version_pass=$(python3 -c 'import sys; print("1") if (sys.version_info.major == 3 and sys.version_info.minor >= 7) else print("0");')
if [ $version_pass == "0" ]
@ -35,7 +35,6 @@ install_wgd(){
printf "| Wireguard Dashboard installed successfully! |\n"
printf "| Starting Dashboard |\n"
start_wgd
printf "%s\n" "$dashes"
}