feat(images): improve odoo bin scripts
This commit is contained in:
2 files changed
+9
-5
No files matched your search
@@ -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,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
|
||||
|
||||
|
||||
Reference in new issue
Block a user