Change Detection update script enhancements

pull/3933/head
Jacob Berelman 9 months ago
parent dbcb900da4
commit 9cc1e1b641
  1. 10
      ct/changedetection.sh

@ -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…
Cancel
Save