- Enforce bash coding conventions across all scripts as outlined in new AGENTS.md - Convert local variables to lowercase and use proper quoting - Update conditionals to use `[[ ... ]]` and remove `function` keyword - Add support for setting git author name and email via env vars - Improve SSH key handling and git operations - Update documentation and changelog to reflect changes
13 lines
437 B
Bash
Executable File
13 lines
437 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
if [[ -n "$ODOO_DATABASE" ]]; then
|
|
if check-database-initialized; then
|
|
odoo_init_lang="${ODOO_INIT_LANG:="en_US"}"
|
|
|
|
log-entrypoint "Update module $1 on database $ODOO_DATABASE."
|
|
(exec odoo "${DB_ARGS[@]}" --database "$ODOO_DATABASE" --update "$1" --config "$ODOO_RC" \
|
|
--stop-after-init --no-http --load-language "$odoo_init_lang" --without-demo=all) || true
|
|
fi
|
|
fi
|