Allow Updating WGDashboard (#2866)

pull/2868/head
Luke Hoggatt 7 months ago committed by GitHub
parent ccc91c0337
commit 1672c7fc0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -68,7 +68,11 @@ exit
fi fi
if [ "$UPD" == "2" ]; then if [ "$UPD" == "2" ]; then
if [[ -f /etc/systemd/system/wg-dashboard.service ]]; 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 exit
fi fi
IP=$(hostname -I | awk '{print $1}') IP=$(hostname -I | awk '{print $1}')

Loading…
Cancel
Save

Powered by BW's shoe-string budget.