mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
Allow Updating WGDashboard
If selecting WGDashboard and the app is already installed, run the update functionality provided by the WGDashboard project: https://github.com/donaldzou/WGDashboard?tab=readme-ov-file#update-method-1-for-v30-or-above I've tested this and it works on my Wireguard LXC.
This commit is contained in:
parent
ccc91c0337
commit
501c479c99
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue