Update bunkerweb-install.sh

change the "hold" method
This commit is contained in:
tteckster 2024-07-03 10:22:46 -04:00 committed by GitHub
parent e6b86f3d47
commit f64e8ef47b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,7 +35,11 @@ msg_info "Installing BunkerWeb v${RELEASE}"
export UI_WIZARD=1 export UI_WIZARD=1
curl -sSL https://packagecloud.io/install/repositories/bunkerity/bunkerweb/script.deb.sh | bash &>/dev/null curl -sSL https://packagecloud.io/install/repositories/bunkerity/bunkerweb/script.deb.sh | bash &>/dev/null
$STD apt-get install -y bunkerweb=${RELEASE} $STD apt-get install -y bunkerweb=${RELEASE}
$STD apt-mark hold bunkerweb cat <<EOF >/etc/apt/preferences.d/bunkerweb
Package: bunkerweb
Pin: version ${RELEASE}
Pin-Priority: 1001
EOF
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
msg_ok "Installed BunkerWeb v${RELEASE}" msg_ok "Installed BunkerWeb v${RELEASE}"