mirror of
https://github.com/WGDashboard/WGDashboard.git
synced 2026-08-04 06:53:00 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ae3b8f6494 | |||
| 33487ee03f | |||
| 58ecae1162 | |||
| 8777da10e4 | |||
| 4ea971c1b9 |
+4
-12
@@ -55,28 +55,20 @@ update_wgd() {
|
|||||||
printf "%s\n" "$dashes"
|
printf "%s\n" "$dashes"
|
||||||
printf "| Downloading %s from GitHub... |\n" "$new_ver"
|
printf "| Downloading %s from GitHub... |\n" "$new_ver"
|
||||||
printf "%s\n" "$dashes"
|
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 "| Update Successfully! |\n"
|
||||||
printf "%s\n" "$dashes"
|
printf "%s\n" "$dashes"
|
||||||
printf "| Now you can start the dashboard with >> sh wgd.sh start |\n"
|
printf "| Now you can start the dashboard with >> sh wgd.sh start |\n"
|
||||||
printf "%s\n" "$dashes"
|
printf "%s\n" "$dashes"
|
||||||
# if check_wgd_status; then
|
exit 1
|
||||||
# stop_wgd
|
|
||||||
# sleep 2
|
|
||||||
# printf "Wireguard Dashboard is stopped. \n"
|
|
||||||
# start_wgd_debug
|
|
||||||
# else
|
|
||||||
# start_wgd_debug
|
|
||||||
# fi
|
|
||||||
else
|
else
|
||||||
printf "%s\n" "$dashes"
|
printf "%s\n" "$dashes"
|
||||||
printf "Cancel update. \n"
|
printf "CANCEL update. \n"
|
||||||
printf "%s\n" "$dashes"
|
printf "%s\n" "$dashes"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if [ "$#" != 1 ];
|
if [ "$#" != 1 ];
|
||||||
then
|
then
|
||||||
help
|
help
|
||||||
|
|||||||
Reference in New Issue
Block a user