From 550ee492db049fdb0edb6b0ffca3b8d6a28b9b58 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Wed, 7 May 2025 16:01:05 +0200 Subject: [PATCH] Bookstack --- ct/bookstack.sh | 4 +--- install/bookstack-install.sh | 6 +----- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/ct/bookstack.sh b/ct/bookstack.sh index 86d3be6..eafe894 100644 --- a/ct/bookstack.sh +++ b/ct/bookstack.sh @@ -35,9 +35,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" mv /opt/bookstack /opt/bookstack-backup - curl -fsSL "https://github.com/BookStackApp/BookStack/archive/refs/tags/v${RELEASE}.zip" -o "/opt/BookStack-${RELEASE}.zip" - unzip -q "/opt/BookStack-${RELEASE}.zip" -d /opt - mv "/opt/BookStack-${RELEASE}" /opt/bookstack + fetch_and_deploy_gh_release BookstackApp/BookStack cp /opt/bookstack-backup/.env /opt/bookstack/.env cp -r /opt/bookstack-backup/public/uploads/* /opt/bookstack/public/uploads/ || true cp -r /opt/bookstack-backup/storage/uploads/* /opt/bookstack/storage/uploads/ || true diff --git a/install/bookstack-install.sh b/install/bookstack-install.sh index 3d2f3c7..bd1096f 100644 --- a/install/bookstack-install.sh +++ b/install/bookstack-install.sh @@ -42,11 +42,7 @@ msg_ok "Set up database" msg_info "Setup Bookstack (Patience)" LOCAL_IP="$(hostname -I | awk '{print $1}')" cd /opt -RELEASE=$(curl -fsSL https://api.github.com/repos/BookStackApp/BookStack/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') -RELEASE="25.02.2" -curl -fsSL "https://github.com/BookStackApp/BookStack/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/BookStackApp/BookStack/archive/refs/tags/v${RELEASE}.zip") -unzip -q v${RELEASE}.zip -mv BookStack-${RELEASE} /opt/bookstack +fetch_and_deploy_gh_release BookstackApp/BookStack cd /opt/bookstack cp .env.example .env sudo sed -i "s|APP_URL=.*|APP_URL=http://$LOCAL_IP|g" /opt/bookstack/.env