mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-03 15:56:17 +00:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
58ecae1162 | ||
|
8777da10e4 | ||
|
4ea971c1b9 |
14
src/wgd.sh
14
src/wgd.sh
@@ -55,19 +55,12 @@ update_wgd() {
|
||||
printf "%s\n" "$dashes"
|
||||
printf "| Downloading %s from GitHub... |\n" "$new_ver"
|
||||
printf "%s\n" "$dashes"
|
||||
git pull https://github.com/donaldzou/wireguard-dashboard.git $new_ver > /dev/null 2>&1
|
||||
git pull https://github.com/donaldzou/wireguard-dashboard.git $new_ver --force > /dev/null 2>&1
|
||||
printf "| Update Successfully! |\n"
|
||||
printf "%s\n" "$dashes"
|
||||
printf "| Now you can start the dashboard with >> sh wgd.sh start |\n"
|
||||
printf "%s\n" "$dashes"
|
||||
# if check_wgd_status; then
|
||||
# stop_wgd
|
||||
# sleep 2
|
||||
# printf "Wireguard Dashboard is stopped. \n"
|
||||
# start_wgd_debug
|
||||
# else
|
||||
# start_wgd_debug
|
||||
# fi
|
||||
printf "%s\n" "$dashes"
|
||||
exit 1
|
||||
else
|
||||
printf "%s\n" "$dashes"
|
||||
printf "Cancel update. \n"
|
||||
@@ -76,7 +69,6 @@ update_wgd() {
|
||||
}
|
||||
|
||||
|
||||
|
||||
if [ "$#" != 1 ];
|
||||
then
|
||||
help
|
||||
|
Reference in New Issue
Block a user