Change Detection update script enhancements

This commit is contained in:
Jacob Berelman 2024-10-20 19:38:57 +02:00
parent dbcb900da4
commit 9cc1e1b641

View file

@ -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