Compare commits

...

2 Commits

Author SHA1 Message Date
Tobias
0dd96cd021 Create pip.conf if not present 2026-05-25 11:15:21 +02:00
Tobias
4415c626fa fix: pip config 2026-05-25 11:13:27 +02:00
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"