- oficially support odoo 18 instead of odoo 16 - support postgis/postgresql 18 into docker - change version erplibre 1.6.0 - support private environment and support local git repo manifest - support switch odoo version - support docker for each version - update os installation - upgrade python requirement - separate virtual environment for erplibre and odoo
21 lines
650 B
Bash
Executable file
21 lines
650 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
CURRENT=$(pwd)
|
|
BASENAME=$(basename "${CURRENT}")
|
|
# Docker remove dot
|
|
BASENAME="${BASENAME//./}"
|
|
# Lowercase
|
|
BASENAME="${BASENAME,,}"
|
|
|
|
docker exec -u root -ti ${BASENAME}-ERPLibre-1 /bin/bash -c "\
|
|
cd /ERPLibre; \
|
|
./docker/repo_manifest_gen_org_prefix_path.py /ERPLibre/odoo$(cat ".odoo-version" | xargs)/addons /etc/odoo/odoo.conf /etc/odoo/odoo.conf; \
|
|
"
|
|
|
|
retVal=$?
|
|
if [[ $retVal -ne 0 ]]; then
|
|
docker exec -u root -ti ${BASENAME}_ERPLibre_1 /bin/bash -c "\
|
|
cd /ERPLibre; \
|
|
./docker/repo_manifest_gen_org_prefix_path.py /ERPLibre/odoo$(cat ".odoo-version" | xargs)/addons /etc/odoo/odoo.conf /etc/odoo/odoo.conf; \
|
|
"
|
|
fi
|