From be6ac828ca1618954a16816c7d6151014472ba78 Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 20 Jul 2025 16:29:07 -0400 Subject: [PATCH] karakeep: add DB_WAL_MODE; suppress test output (#6101) --- ct/karakeep.sh | 12 ++++++------ install/karakeep-install.sh | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ct/karakeep.sh b/ct/karakeep.sh index da7900731..1c214c952 100644 --- a/ct/karakeep.sh +++ b/ct/karakeep.sh @@ -36,11 +36,11 @@ function update_script() { msg_info "Stopping Services" systemctl stop karakeep-web karakeep-workers karakeep-browser msg_ok "Stopped Services" - + msg_info "Updating yt-dlp" $STD yt-dlp --update-to nightly msg_ok "Updated yt-dlp" - + msg_info "Prepare update" if [[ -f /opt/${APP}_version.txt && "$(cat /opt/${APP}_version.txt)" < "0.23.0" ]]; then $STD apt-get install -y graphicsmagick ghostscript @@ -51,14 +51,14 @@ function update_script() { fi rm -rf /opt/karakeep msg_ok "Update prepared" - + fetch_and_deploy_gh_release "karakeep" "karakeep-app/karakeep" - if command -v corepack; then + if command -v corepack >/dev/null; then $STD corepack disable fi MODULE_VERSION="$(jq -r '.packageManager | split("@")[1]' /opt/karakeep/package.json)" NODE_VERSION="22" NODE_MODULE="pnpm@${MODULE_VERSION}" setup_nodejs - + msg_info "Updating ${APP} to v${RELEASE}" export PUPPETEER_SKIP_DOWNLOAD="true" export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD="true" @@ -82,7 +82,7 @@ function update_script() { msg_info "Starting Services" systemctl start karakeep-browser karakeep-workers karakeep-web msg_ok "Started Services" - + msg_info "Cleaning up" $STD apt-get autoremove -y $STD apt-get autoclean -y diff --git a/install/karakeep-install.sh b/install/karakeep-install.sh index aa1732000..20cbd515d 100644 --- a/install/karakeep-install.sh +++ b/install/karakeep-install.sh @@ -80,6 +80,7 @@ DATA_DIR="$DATA_DIR" MEILI_ADDR="http://127.0.0.1:7700" MEILI_MASTER_KEY="$MASTER_KEY" BROWSER_WEB_URL="http://127.0.0.1:9222" +DB_WAL_MODE=true # If you're planning to use OpenAI for tagging. Uncomment the following line: # OPENAI_API_KEY=""