|
|
@ -62,6 +62,16 @@ if ! dpkg -s libjpeg-dev >/dev/null 2>&1; then |
|
|
|
fi |
|
|
|
fi |
|
|
|
pip3 install changedetection.io --upgrade &>/dev/null |
|
|
|
pip3 install changedetection.io --upgrade &>/dev/null |
|
|
|
pip3 install playwright --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 |
|
|
|
systemctl restart changedetection |
|
|
|
msg_ok "Updated Successfully" |
|
|
|
msg_ok "Updated Successfully" |
|
|
|
exit |
|
|
|
exit |
|
|
|