Compare commits

...

4 Commits

Author SHA1 Message Date
Donald Cheng Hong Zou
33487ee03f v2.0-beta-6 Commit 2021-05-05 15:16:32 -04:00
Donald Cheng Hong Zou
58ecae1162 v2.0-beta-6 Commit 2021-05-05 15:09:34 -04:00
Donald Cheng Hong Zou
8777da10e4 v2.0-beta-1 Commit 2021-05-05 14:59:00 -04:00
Donald Zou
4ea971c1b9 v2.0-beta-1 Commit 2021-05-05 14:52:28 -04:00

View File

@@ -55,28 +55,20 @@ 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
exit 1
else
printf "%s\n" "$dashes"
printf "Cancel update. \n"
printf "CANCEL update. \n"
printf "%s\n" "$dashes"
fi
}
if [ "$#" != 1 ];
then
help