From 830fddb2a92236080f192966cc8185e7c0f09227 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 6 May 2024 13:23:52 -0400 Subject: [PATCH 1/3] Update wireguard.sh fixes https://github.com/tteck/Proxmox/issues/2919 --- ct/wireguard.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ct/wireguard.sh b/ct/wireguard.sh index 1fb935f15..b8efa7cc2 100644 --- a/ct/wireguard.sh +++ b/ct/wireguard.sh @@ -70,8 +70,8 @@ if [ "$UPD" == "2" ]; then if [[ -f /etc/systemd/system/wg-dashboard.service ]]; then msg_info "Updating WGDashboard" cd /etc/wgdashboard/src - yes "Y" | sudo ./wgd.sh update &>/dev/null - sudo chmod u+x wgd.sh + chmod u+x wgd.sh + ./wgd.sh update msg_ok "Updated Successfully" exit fi @@ -91,9 +91,9 @@ WGDREL=$(curl -s https://api.github.com/repos/donaldzou/WGDashboard/releases/lat git clone -b ${WGDREL} https://github.com/donaldzou/WGDashboard.git /etc/wgdashboard &>/dev/null cd /etc/wgdashboard/src -sudo chmod u+x wgd.sh -sudo ./wgd.sh install &>/dev/null -sudo chmod -R 755 /etc/wireguard +chmod u+x wgd.sh +./wgd.sh install &>/dev/null +chmod -R 755 /etc/wireguard msg_ok "Installed WGDashboard" msg_info "Creating Service" From 5793283ea4b8e48daece9b55a7dcd392c6bcbc51 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 6 May 2024 13:25:19 -0400 Subject: [PATCH 2/3] Update wireguard.sh --- ct/wireguard.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ct/wireguard.sh b/ct/wireguard.sh index b8efa7cc2..b5137ca62 100644 --- a/ct/wireguard.sh +++ b/ct/wireguard.sh @@ -68,7 +68,6 @@ exit fi if [ "$UPD" == "2" ]; then if [[ -f /etc/systemd/system/wg-dashboard.service ]]; then - msg_info "Updating WGDashboard" cd /etc/wgdashboard/src chmod u+x wgd.sh ./wgd.sh update From cfc6ca13effd79cdd8a27c31bb171f2b37f88491 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 6 May 2024 13:26:03 -0400 Subject: [PATCH 3/3] Update wireguard.sh tweak --- ct/wireguard.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ct/wireguard.sh b/ct/wireguard.sh index b5137ca62..23e75b80f 100644 --- a/ct/wireguard.sh +++ b/ct/wireguard.sh @@ -63,7 +63,6 @@ if [ "$UPD" == "1" ]; then msg_info "Updating ${APP} LXC" apt-get update &>/dev/null apt-get -y upgrade &>/dev/null -msg_ok "Updated Successfully" exit fi if [ "$UPD" == "2" ]; then