Compare commits

..

3 Commits

Author SHA1 Message Date
MickLesk b8715cb25a karakeep: pin Node.js to 22 LTS, avoid Node 24.19 better-sqlite3 crash 2026-08-10 17:30:23 +02:00
MickLesk 1001309bde Document the dev mode flags that exist
dryrun was listed but is gone from core: it intercepted only the
silent() wrapper, so pct create ran anyway and the container was built.
net and timing were missing, as was the picker that dev_mode without a
flag now opens.
2026-08-10 15:21:10 +02:00
community-scripts-pr-app[bot] d9d34761d2 Update CHANGELOG.md (#16392)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-08-10 10:02:50 +00:00
3 changed files with 18 additions and 4 deletions
+12 -1
View File
@@ -172,8 +172,19 @@ dev_mode="trace,keep" bash -c "$(curl -fsSL https://raw.githubusercontent.com/co
| `pause` | Pauses execution at key points before customization |
| `breakpoint` | Drops to a shell at hardcoded `breakpoint` calls in scripts |
| `logs` | Saves detailed build logs to `/var/log/community-scripts/` |
| `dryrun` | Bypasses actual container creation (limited support) |
| `motd` | Forces an update of the Message of the Day |
| `net` | Logs every engine fetch: HTTP status, duration and URL |
| `timing` | Times each step and lists the slowest ones at the end |
Any flag also prints the resolved context first — where the engine came from,
both roots and URLs, the app, platform and versions — and repaints the greens
red, so a dev run is never mistaken for a normal install.
Setting `dev_mode` without naming a flag (`dev_mode=`, `=1`, `=ask`) opens a
picker before the install menu.
`dryrun` was removed: it only intercepted the `silent()` wrapper, so `pct
create` still ran and the container was still built.
---
+4 -2
View File
@@ -88,8 +88,9 @@ EOF
$STD corepack disable
fi
sed -i "s/^SERVER_VERSION=.*$/SERVER_VERSION=${CHECK_UPDATE_RELEASE#v}/" /etc/karakeep/karakeep.env
# Node 24.19.x crashes better-sqlite3 on cleanup (karakeep-app/karakeep#2989); stay on 22 LTS until upstream reverts.
MODULE_VERSION="$(jq -r '.packageManager | split("@")[1]' /opt/karakeep/package.json)"
NODE_VERSION="24" NODE_MODULE="corepack,pnpm@${MODULE_VERSION}" setup_nodejs
NODE_VERSION="22" NODE_MODULE="corepack,pnpm@${MODULE_VERSION}" setup_nodejs
setup_meilisearch
msg_info "Updating Karakeep"
@@ -101,8 +102,9 @@ EOF
cd /opt/karakeep/apps/web
$STD pnpm install --frozen-lockfile
$STD pnpm build
cd /opt/karakeep/apps/workers
cd /opt/karakeep/apps/workers
$STD pnpm install --frozen-lockfile
$STD pnpm rebuild better-sqlite3
$STD pnpm build
cd /opt/karakeep/apps/cli
$STD pnpm install --frozen-lockfile
+2 -1
View File
@@ -31,8 +31,9 @@ setup_meilisearch
fetch_and_deploy_gh_release "karakeep" "karakeep-app/karakeep" "tarball"
cd /opt/karakeep
# Node 24.19.x crashes better-sqlite3 on cleanup (karakeep-app/karakeep#2989); stay on 22 LTS until upstream reverts.
MODULE_VERSION="$(jq -r '.packageManager | split("@")[1]' /opt/karakeep/package.json)"
NODE_VERSION="24" NODE_MODULE="pnpm@${MODULE_VERSION}" setup_nodejs
NODE_VERSION="22" NODE_MODULE="pnpm@${MODULE_VERSION}" setup_nodejs
msg_info "Installing external JavaScript Extension for yt-dlp"
$STD pip install -U yt-dlp-ejs --break-system-packages