[FIX] use relative path for compose to avoid 0k dev-pack IOError
The 0k dev-pack's compose script doesn't handle absolute paths correctly. It passes HOST_COMPOSE_YML_FILE to the container, which tries to open it directly instead of using the mounted path. Add run_compose() wrapper that changes to PROJECT_ROOT before calling compose with a relative path, ensuring consistent behavior regardless of the current working directory.
This commit is contained in:
@@ -49,4 +49,4 @@ exec_python_script_in_odoo_shell "$DB_NAME" "$DB_NAME" "$PYTHON_SCRIPT"
|
||||
|
||||
|
||||
# Launch Odoo with database in finale version to run all updates
|
||||
compose --debug run "$ODOO_SERVICE" -u all --log-level=debug --stop-after-init --no-http
|
||||
run_compose --debug run "$ODOO_SERVICE" -u all --log-level=debug --stop-after-init --no-http
|
||||
|
||||
Reference in New Issue
Block a user