diff --git a/ct/changedetection.sh b/ct/changedetection.sh index b6f42369..85067c6b 100644 --- a/ct/changedetection.sh +++ b/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/browserless.service ]]; then + git -C /opt/browserless/ pull &>/dev/null + npm update --prefix /opt/browserless &>/dev/null + npm run build --prefix /opt/browserless &>/dev/null + npm run build:function --prefix /opt/browserless &>/dev/null + npm prune production --prefix /opt/browserless &>/dev/null + systemctl restart browserless +else + msg_error "No Browserless Installation Found!" +fi systemctl restart changedetection msg_ok "Updated Successfully" exit