1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-10-01 09:00:13 +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_name="dashboard.py"
app_official_name="Wireguard Dashboard" app_official_name="Wireguard Dashboard"
dashes='------------------------------------------------------------' dashes='------------------------------------------------------------'
equals='============================================================'
help () { help () {
printf "<Wireguard Dashboard> by Donald Zou - https://github.com/donaldzou \n" printf "<Wireguard Dashboard> by Donald Zou - https://github.com/donaldzou \n"
printf "Usage: ./wgd.sh <option>" printf "Usage: ./wgd.sh <option>"
@ -18,7 +19,6 @@ help () {
} }
install_wgd(){ install_wgd(){
printf "%s\n" "$dashes"
# Check Python3 version # 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");') 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" ] if [ $version_pass == "0" ]
@ -35,7 +35,6 @@ install_wgd(){
printf "| Wireguard Dashboard installed successfully! |\n" printf "| Wireguard Dashboard installed successfully! |\n"
printf "| Starting Dashboard |\n" printf "| Starting Dashboard |\n"
start_wgd start_wgd
printf "%s\n" "$dashes"
} }