[bitnami/odoo] Release 14.0.20230410-debian-11-r4 (#31144)

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Bitnami Bot
2023-04-20 19:59:30 +02:00
committed by GitHub
parent 4131244e26
commit a2c9c62fe3
5 changed files with 105 additions and 16 deletions

View File

@@ -291,7 +291,7 @@ odoo_wait_for_postgresql_connection() {
odoo_execute() {
# Define 'odoo' cmdline arguments
local -a cmd=("${ODOO_BIN_DIR}/odoo")
am_i_root && cmd=("gosu" "$ODOO_DAEMON_USER" "${cmd[@]}")
am_i_root && cmd=("run_as_user" "$ODOO_DAEMON_USER" "${cmd[@]}")
# Ensure the logfile is not populated with init info and no service is left running
debug_execute "${cmd[@]}" --config="$ODOO_CONF_FILE" --logfile= --pidfile= --stop-after-init "$@"

View File

@@ -20,7 +20,7 @@ declare -a args=("--config" "$ODOO_CONF_FILE" "$@")
info "** Starting Odoo **"
if am_i_root; then
exec gosu "$ODOO_DAEMON_USER" "$cmd" "${args[@]}"
exec_as_user "$ODOO_DAEMON_USER" "$cmd" "${args[@]}"
else
exec "$cmd" "${args[@]}"
fi