From 5ef5f0086ee25b476fe3c96b3d9bf2dcd97f8f50 Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 3 Jul 2024 09:26:20 -0400 Subject: [PATCH] Update bunkerweb.sh - works for 1.5.8 and newer - if the update fails with 1.5.7 execute `RELEASE=$(curl -s https://api.github.com/repos/bunkerity/bunkerweb/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') apt-get install -y bunkerweb=${RELEASE}` in the LXC console --- ct/bunkerweb.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ct/bunkerweb.sh b/ct/bunkerweb.sh index 3873484f..121aaab9 100644 --- a/ct/bunkerweb.sh +++ b/ct/bunkerweb.sh @@ -55,6 +55,7 @@ function default_settings() { function update_script() { header_info if [[ ! -d /etc/bunkerweb ]]; then msg_error "No ${APP} Installation Found!"; exit; fi + RELEASE=$(curl -s https://api.github.com/repos/bunkerity/bunkerweb/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then