mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-16 15:51:12 +02:00
Create pip.conf if not present
This commit is contained in:
@@ -46,6 +46,14 @@ function update_script() {
|
|||||||
fi
|
fi
|
||||||
msg_ok "Update prepared"
|
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
|
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
|
sed -i 's|^ExecStart=.*$|ExecStart=/usr/bin/node dist/index.mjs|' /etc/systemd/system/karakeep-workers.service
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|||||||
Reference in New Issue
Block a user