1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-07-04 16:30:15 +02:00

Update wgd.sh

This commit is contained in:
Donald Cheng Hong Zou 2021-09-03 14:26:05 -04:00
parent c9b6775793
commit 2e387730cb

View File

@ -18,7 +18,7 @@ help () {
} }
install_wgd(){ install_wgd(){
printf "$dashes\n" 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" ]
@ -34,7 +34,7 @@ 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 "$dashes\n" printf "%s\n" "$dashes"
} }