mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-25 18:04:58 +02:00
karakeep: fix: pip config (#14703)
* fix: pip config * Create pip.conf if not present
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user