mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-04 23:10:14 +01:00
Update wgd.sh
This commit is contained in:
parent
8367576dc8
commit
93007cd56c
10
src/wgd.sh
10
src/wgd.sh
@ -82,16 +82,16 @@ if [ "$#" != 1 ];
|
|||||||
else
|
else
|
||||||
if [ "$1" = "start" ]; then
|
if [ "$1" = "start" ]; then
|
||||||
if check_wgd_status; then
|
if check_wgd_status; then
|
||||||
printf "Wireguard Dashboard is already running. \n"
|
printf "| Wireguard Dashboard is already running. |\n"
|
||||||
else
|
else
|
||||||
start_wgd
|
start_wgd
|
||||||
fi
|
fi
|
||||||
elif [ "$1" = "stop" ]; then
|
elif [ "$1" = "stop" ]; then
|
||||||
if check_wgd_status; then
|
if check_wgd_status; then
|
||||||
stop_wgd
|
stop_wgd
|
||||||
printf "Wireguard Dashboard is stopped. \n"
|
printf "| Wireguard Dashboard is stopped. |\n"
|
||||||
else
|
else
|
||||||
printf "Wireguard Dashboard is not running. \n"
|
printf "| Wireguard Dashboard is not running. |\n"
|
||||||
fi
|
fi
|
||||||
elif [ "$1" = "update" ]; then
|
elif [ "$1" = "update" ]; then
|
||||||
update_wgd
|
update_wgd
|
||||||
@ -101,14 +101,14 @@ if [ "$#" != 1 ];
|
|||||||
if check_wgd_status; then
|
if check_wgd_status; then
|
||||||
stop_wgd
|
stop_wgd
|
||||||
sleep 2
|
sleep 2
|
||||||
printf "Wireguard Dashboard is stopped. \n"
|
printf "| Wireguard Dashboard is stopped. |\n"
|
||||||
start_wgd
|
start_wgd
|
||||||
else
|
else
|
||||||
start_wgd
|
start_wgd
|
||||||
fi
|
fi
|
||||||
elif [ "$1" = "debug" ]; then
|
elif [ "$1" = "debug" ]; then
|
||||||
if check_wgd_status; then
|
if check_wgd_status; then
|
||||||
printf "Wireguard Dashboard is already running. \n"
|
printf "| Wireguard Dashboard is already running. |\n"
|
||||||
else
|
else
|
||||||
start_wgd_debug
|
start_wgd_debug
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user