mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-17 21:10:12 +01:00
Update wgd.sh
This commit is contained in:
parent
dbc06145b3
commit
8367576dc8
@ -35,13 +35,13 @@ check_wgd_status(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
start_wgd () {
|
start_wgd () {
|
||||||
printf "| Starting Wireguard Dashboard in the background. \n"
|
printf "| Starting Wireguard Dashboard in the background. |\n"
|
||||||
if [ ! -d "log" ]
|
if [ ! -d "log" ]
|
||||||
then mkdir "log"
|
then mkdir "log"
|
||||||
fi
|
fi
|
||||||
d=$(date '+%Y%m%d%H%M%S')
|
d=$(date '+%Y%m%d%H%M%S')
|
||||||
python3 "$app_name" > log/"$d".txt 2>&1 &
|
python3 "$app_name" > log/"$d".txt 2>&1 &
|
||||||
printf "| Log files is under log/ \n"
|
printf "| Log files is under log/ |\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
stop_wgd() {
|
stop_wgd() {
|
||||||
@ -49,7 +49,7 @@ stop_wgd() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start_wgd_debug() {
|
start_wgd_debug() {
|
||||||
printf "| Starting Wireguard Dashboard in the foreground. \n"
|
printf "| Starting Wireguard Dashboard in the foreground. |\n"
|
||||||
python3 "$app_name"
|
python3 "$app_name"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user