From e6b86f3d47058af503a008feec0b9423394676fc Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 3 Jul 2024 10:04:23 -0400 Subject: [PATCH] Update bunkerweb.sh tweak --- ct/bunkerweb.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ct/bunkerweb.sh b/ct/bunkerweb.sh index 121aaab9..9e155974 100644 --- a/ct/bunkerweb.sh +++ b/ct/bunkerweb.sh @@ -60,8 +60,11 @@ RELEASE=$(curl -s https://api.github.com/repos/bunkerity/bunkerweb/releases/late if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then msg_info "Updating ${APP} to ${RELEASE}" + apt-get update apt-get install nginx -y + apt-mark unhold bunkerweb apt-get install -y bunkerweb=${RELEASE} + apt-mark hold bunkerweb echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP} to ${RELEASE}"