Skip to content

Commit 10cd6c3

Browse files
authored
Odoo: Fix missing dependencies (#7931)
* Fix odoo * Update
1 parent 710bd7f commit 10cd6c3

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

ct/odoo.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ function update_script() {
2828
msg_error "No ${APP} Installation Found!"
2929
exit 1
3030
fi
31+
if ! [[ $(dpkg -s python3-lxml-html-clean 2>/dev/null) ]]; then
32+
$STD apt-get install python-lxml
33+
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
34+
$STD dpkg -i /opt/python3-lxml-html-clean.deb
35+
rm -f /opt/python3-lxml-html-clean.deb
36+
fi
37+
3138
RELEASE=$(curl -fsSL https://nightly.odoo.com/ | grep -oE 'href="[0-9]+\.[0-9]+/nightly"' | head -n1 | cut -d'"' -f2 | cut -d/ -f1)
3239
LATEST_VERSION=$(curl -fsSL "https://nightly.odoo.com/${RELEASE}/nightly/deb/" |
3340
grep -oP "odoo_${RELEASE}\.\d+_all\.deb" |

install/odoo-install.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ network_check
1414
update_os
1515

1616
msg_info "Installing Dependencies"
17-
$STD apt-get install -y \
18-
build-essential \
19-
make
17+
$STD apt-get install -y python3-lxml
18+
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
19+
$STD dpkg -i /opt/python3-lxml-html-clean.deb
2020
msg_ok "Installed Dependencies"
2121

22+
PG_VERSION="18" setup_postgresql
23+
2224
RELEASE=$(curl -fsSL https://nightly.odoo.com/ | grep -oE 'href="[0-9]+\.[0-9]+/nightly"' | head -n1 | cut -d'"' -f2 | cut -d/ -f1)
2325
LATEST_VERSION=$(curl -fsSL "https://nightly.odoo.com/${RELEASE}/nightly/deb/" |
2426
grep -oP "odoo_${RELEASE}\.\d+_all\.deb" |
@@ -69,6 +71,7 @@ customize
6971

7072
msg_info "Cleaning up"
7173
rm -f /opt/odoo.deb
74+
rm -f /opt/python3-lxml-html-clean.deb
7275
$STD apt-get autoremove
7376
$STD apt-get autoclean
7477
msg_ok "Cleaned"

0 commit comments

Comments
 (0)