From 10cd6c3f0bac7cd87a7c2d51f07c242e48ab30d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Fri, 26 Sep 2025 22:59:21 +0200 Subject: [PATCH] Odoo: Fix missing dependencies (#7931) * Fix odoo * Update --- ct/odoo.sh | 7 +++++++ install/odoo-install.sh | 9 ++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ct/odoo.sh b/ct/odoo.sh index 0451c9478..90f643dae 100644 --- a/ct/odoo.sh +++ b/ct/odoo.sh @@ -28,6 +28,13 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit 1 fi + if ! [[ $(dpkg -s python3-lxml-html-clean 2>/dev/null) ]]; then + $STD apt-get install python-lxml + curl -fsSL "http://archive.ubuntu.com/ubuntu/pool/universe/l/lxml-html-clean/python3-lxml-html-clean_0.1.1-1_all.deb" -o /opt/python3-lxml-html-clean.deb + $STD dpkg -i /opt/python3-lxml-html-clean.deb + rm -f /opt/python3-lxml-html-clean.deb + fi + RELEASE=$(curl -fsSL https://nightly.odoo.com/ | grep -oE 'href="[0-9]+\.[0-9]+/nightly"' | head -n1 | cut -d'"' -f2 | cut -d/ -f1) LATEST_VERSION=$(curl -fsSL "https://nightly.odoo.com/${RELEASE}/nightly/deb/" | grep -oP "odoo_${RELEASE}\.\d+_all\.deb" | diff --git a/install/odoo-install.sh b/install/odoo-install.sh index cf75acf67..7a2c0afd7 100644 --- a/install/odoo-install.sh +++ b/install/odoo-install.sh @@ -14,11 +14,13 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - build-essential \ - make +$STD apt-get install -y python3-lxml +curl -fsSL "http://archive.ubuntu.com/ubuntu/pool/universe/l/lxml-html-clean/python3-lxml-html-clean_0.1.1-1_all.deb" -o /opt/python3-lxml-html-clean.deb +$STD dpkg -i /opt/python3-lxml-html-clean.deb msg_ok "Installed Dependencies" +PG_VERSION="18" setup_postgresql + RELEASE=$(curl -fsSL https://nightly.odoo.com/ | grep -oE 'href="[0-9]+\.[0-9]+/nightly"' | head -n1 | cut -d'"' -f2 | cut -d/ -f1) LATEST_VERSION=$(curl -fsSL "https://nightly.odoo.com/${RELEASE}/nightly/deb/" | grep -oP "odoo_${RELEASE}\.\d+_all\.deb" | @@ -69,6 +71,7 @@ customize msg_info "Cleaning up" rm -f /opt/odoo.deb +rm -f /opt/python3-lxml-html-clean.deb $STD apt-get autoremove $STD apt-get autoclean msg_ok "Cleaned"