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
pull/3324/head
tteckster 5 months ago committed by GitHub
parent 85418addac
commit 5ef5f0086e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save

Powered by BW's shoe-string budget.