File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141
4242[[ -z " $database " ]] && { echo ' Parameter -d|database is empty.' ; exit 1; }
4343
44- docker exec -i $container /bin/bash -c " odoo cloc -c /etc/odoo/odoo.conf -d $database --db_host=\$ PGHOST --db_user=\$ PGUSER --db_password=\$ PGPASSWORD --stop-after-init --no-http"
44+ docker exec -i $container /bin/bash -c "
45+ unset ODOO_ADDONS_PATH
46+ unset ADDONS_PATH
47+ odoo cloc -d $database --db_host=\$ PGHOST --db_user=\$ PGUSER --db_password=\$ PGPASSWORD --stop-after-init --no-http
48+ "
Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ container_id=$(docker ps -f "name=${container}" -q | head -n1)
5454[[ -z " $container_id " ]] && { echo " Container id for $container not found." ; exit 1; }
5555
5656echo " Initializing modules $modules with langague $odoo_language on database $database ."
57- docker exec $container_id /bin/bash -c " odoo -i $modules -d $database --db_host=\$ PGHOST --db_user=\$ PGUSER --db_password=\$ PGPASSWORD $without_demo --load-language $odoo_language --stop-after-init --no-http"
57+ docker exec $container_id /bin/bash -c "
58+ unset ODOO_ADDONS_PATH
59+ unset ADDONS_PATH
60+ odoo -i $modules -d $database --db_host=\$ PGHOST --db_user=\$ PGUSER --db_password=\$ PGPASSWORD $without_demo --load-language $odoo_language --stop-after-init --no-http
61+ "
5862
5963echo ' Modules initialized. Please restart the Odoo container/process.'
Original file line number Diff line number Diff line change @@ -61,4 +61,8 @@ container_id=$(docker ps -f "name=$container" --format '{{.ID}}' | head -n1)
6161
6262# Update with Docker exec
6363echo " Update modules $modules on database $database ."
64- docker exec " $container_id " /bin/bash -c " odoo -c /etc/odoo/odoo.conf -d $database -u $modules --db_host=\$ PGHOST --db_user=\$ PGUSER --db_password=\$ PGPASSWORD --stop-after-init --no-http $overwrite_translations "
64+ docker exec " $container_id " /bin/bash -c "
65+ unset ODOO_ADDONS_PATH
66+ unset ADDONS_PATH
67+ odoo -d $database -u $modules --db_host=\$ PGHOST --db_user=\$ PGUSER --db_password=\$ PGPASSWORD --stop-after-init --no-http $overwrite_translations
68+ "
You can’t perform that action at this time.
0 commit comments