From fc5ea73e450190b915aa5298f423b77a8a8baad3 Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 3 Jul 2024 10:24:42 -0400 Subject: [PATCH] Update bunkerweb.sh change the "hold" method --- ct/bunkerweb.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ct/bunkerweb.sh b/ct/bunkerweb.sh index 9e155974..14e8a2a6 100644 --- a/ct/bunkerweb.sh +++ b/ct/bunkerweb.sh @@ -60,11 +60,14 @@ 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}" + cat </etc/apt/preferences.d/bunkerweb +Package: bunkerweb +Pin: version ${RELEASE} +Pin-Priority: 1001 +EOF 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}"