mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
Change Detection update script enhancements
This commit is contained in:
parent
dbcb900da4
commit
9cc1e1b641
1 changed files with 10 additions and 0 deletions
|
@ -62,6 +62,16 @@ if ! dpkg -s libjpeg-dev >/dev/null 2>&1; then
|
|||
fi
|
||||
pip3 install changedetection.io --upgrade &>/dev/null
|
||||
pip3 install playwright --upgrade &>/dev/null
|
||||
if [[ -f /etc/systemd/system/browserless1.service ]]; then
|
||||
git -C /opt/browserless/ pull
|
||||
npm update --prefix /opt/browserless
|
||||
npm run build --prefix /opt/browserless
|
||||
npm run build:function --prefix /opt/browserless
|
||||
npm prune production --prefix /opt/browserless
|
||||
systemctl restart browserless
|
||||
else
|
||||
msg_error "No Browserless Installation Found!"
|
||||
fi
|
||||
systemctl restart changedetection
|
||||
msg_ok "Updated Successfully"
|
||||
exit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue