1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-11-22 23:27:45 +01:00

Update wgd.sh

This commit is contained in:
Donald Cheng Hong Zou 2021-12-25 17:37:43 -05:00
parent fcf9300a49
commit fd76cabd01

View File

@ -106,7 +106,8 @@ update_wgd() {
read up read up
if [ "$up" = "Y" ]; then if [ "$up" = "Y" ]; then
printf "| Shutting down WGDashboard... |\n" printf "| Shutting down WGDashboard... |\n"
kill "$(ps aux | grep "[p]ython3 $app_name" | awk '{print $2}')" if check_wgd_status; then
stop_wgd
mv wgd.sh wgd.sh.old mv wgd.sh wgd.sh.old
printf "| Downloading %s from GitHub... |\n" "$new_ver" printf "| Downloading %s from GitHub... |\n" "$new_ver"
git stash > /dev/null 2>&1 git stash > /dev/null 2>&1