From 0dd96cd02168cd4d398fa5c4193ee983875b8c30 Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Mon, 25 May 2026 11:15:21 +0200 Subject: [PATCH] Create pip.conf if not present --- ct/karakeep.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ct/karakeep.sh b/ct/karakeep.sh index 88eb8267d..823f8e54a 100644 --- a/ct/karakeep.sh +++ b/ct/karakeep.sh @@ -46,6 +46,14 @@ function update_script() { fi msg_ok "Update prepared" + if [ ! -f ~/.config/pip/pip.conf ]; then + mkdir -p ~/.config/pip + cat <~/.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