karakeep: fix: pip config (#14703)

* fix: pip config

* Create pip.conf if not present
This commit is contained in:
Tobias
2026-05-25 12:05:16 +02:00
committed by GitHub
parent d984a5828d
commit 45953e857a
2 changed files with 13 additions and 0 deletions

View File

@@ -46,6 +46,14 @@ function update_script() {
fi
msg_ok "Update prepared"
if [ ! -f ~/.config/pip/pip.conf ]; then
mkdir -p ~/.config/pip
cat <<EOF >~/.config/pip/pip.conf
[global]
break-system-packages = true
EOF
fi
if grep -q "start:prod" /etc/systemd/system/karakeep-workers.service; then
sed -i 's|^ExecStart=.*$|ExecStart=/usr/bin/node dist/index.mjs|' /etc/systemd/system/karakeep-workers.service
systemctl daemon-reload

View File

@@ -36,6 +36,11 @@ NODE_VERSION="24" NODE_MODULE="pnpm@${MODULE_VERSION}" setup_nodejs
msg_info "Installing external JavaScript Extension for yt-dlp"
$STD pip install -U yt-dlp-ejs
mkdir -p ~/.config/pip
cat <<EOF >~/.config/pip/pip.conf
[global]
break-system-packages = true
EOF
msg_ok "Installed external JavaScript Extension for yt-dlp"
msg_info "Installing karakeep"