From a4a692f4495f4ac2b7a480a26821462ce11e20e7 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 8 Mar 2024 14:24:49 -0500 Subject: [PATCH] Update changedetection.sh if libjpeg-dev is not installed, install it --- ct/changedetection.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ct/changedetection.sh b/ct/changedetection.sh index 4eda7b24..b6f42369 100644 --- a/ct/changedetection.sh +++ b/ct/changedetection.sh @@ -56,6 +56,10 @@ function update_script() { header_info if [[ ! -f /etc/systemd/system/changedetection.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating ${APP} LXC" +if ! dpkg -s libjpeg-dev >/dev/null 2>&1; then + apt-get update + apt-get install -y libjpeg-dev +fi pip3 install changedetection.io --upgrade &>/dev/null pip3 install playwright --upgrade &>/dev/null systemctl restart changedetection