Allow Updating WGDashboard (#2866)

This commit is contained in:
Luke Hoggatt 2024-04-26 16:28:52 -05:00 committed by GitHub
parent ccc91c0337
commit 1672c7fc0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -68,7 +68,11 @@ exit
fi
if [ "$UPD" == "2" ]; then
if [[ -f /etc/systemd/system/wg-dashboard.service ]]; then
msg_error "Existing WGDashboard Installation Found!";
msg_info "Updating WGDashboard"
cd /etc/wgdashboard/src
yes "Y" | sudo ./wgd.sh update &>/dev/null
sudo chmod u+x wgd.sh
msg_ok "Updated Successfully"
exit
fi
IP=$(hostname -I | awk '{print $1}')