feat(images): improve odoo bin scripts

This commit is contained in:
Janik von Rotz committed 2025-06-01 19:47:51 +02:00
1 parent 90c14d222b
commit 00c8aeb936
2 files changed
+9 -5

No files matched your search

+8 -4
View File
@@ -1,8 +1,12 @@
#!/bin/bash
HTTP_PYPI_OK=$(curl -s --head --request GET https://pypi.org/simple/ | grep "HTTP/2 200")
if [ -n "$PYTHON_INSTALL" ]; then
if [ -n "$PYTHON_INSTALL" ] && [ -n "$HTTP_PYPI_OK" ]; then
entrypoint-log "Install python packages: $PYTHON_INSTALL"
uv pip install --no-cache-dir $(echo "$PYTHON_INSTALL" | tr "," " ")
entrypoint-log "Check status of PyPi."
HTTP_PYPI_OK=$(curl -s --head --request GET https://pypi.org/simple/ | grep "HTTP/2 200")
if [ -n "$HTTP_PYPI_OK" ]; then
entrypoint-log "Install python packages: $PYTHON_INSTALL"
uv pip install --no-cache-dir $(echo "$PYTHON_INSTALL" | tr "," " ")
fi
fi
+1 -1
View File
@@ -1,7 +1,7 @@
#!/bin/bash
# Add git path to addons path
if [ -n "$ADDONS_GIT_REPOS" ]; then
if [ -n "$ADDONS_GIT_REPOS" && -d "/var/lib/odoo/git" ]; then
ODOO_ADDONS_PATH="/var/lib/odoo/git,$ODOO_ADDONS_PATH"
fi