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"