Skip to content

Commit

Permalink
db_password is required for Odoo to start
Browse files Browse the repository at this point in the history
  • Loading branch information
thatnerdjosh committed Apr 1, 2024
1 parent 6d3a90c commit ed53a1e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
9 changes: 6 additions & 3 deletions 15.0/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,18 @@ function check_config() {
ODOO_ARGS+=("--${param}")
ODOO_ARGS+=("${value}")

DB_ARGS+=("${pg_flag}")
DB_ARGS+=("${value}")
# Only add to DB_ARGS if pg_flag is set
if [[ -n "$pg_flag" ]]; then
DB_ARGS+=("${pg_flag}")
DB_ARGS+=("${value}")
fi
}

check_config "db_name" "$NAME" "-d"
check_config "db_host" "$HOST" "-h"
check_config "db_port" "$PORT" "-p"
check_config "db_user" "$USER" "-U"
# check_config "db_password" "$PASSWORD"
check_config "db_password" "$PASSWORD"

case "$1" in
-- | odoo)
Expand Down
9 changes: 6 additions & 3 deletions 16.0/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,18 @@ function check_config() {
ODOO_ARGS+=("--${param}")
ODOO_ARGS+=("${value}")

DB_ARGS+=("${pg_flag}")
DB_ARGS+=("${value}")
# Only add to DB_ARGS if pg_flag is set
if [[ -n "$pg_flag" ]]; then
DB_ARGS+=("${pg_flag}")
DB_ARGS+=("${value}")
fi
}

check_config "db_name" "$NAME" "-d"
check_config "db_host" "$HOST" "-h"
check_config "db_port" "$PORT" "-p"
check_config "db_user" "$USER" "-U"
# check_config "db_password" "$PASSWORD"
check_config "db_password" "$PASSWORD"

case "$1" in
-- | odoo)
Expand Down
9 changes: 6 additions & 3 deletions 17.0/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,18 @@ function check_config() {
ODOO_ARGS+=("--${param}")
ODOO_ARGS+=("${value}")

DB_ARGS+=("${pg_flag}")
DB_ARGS+=("${value}")
# Only add to DB_ARGS if pg_flag is set
if [[ -n "$pg_flag" ]]; then
DB_ARGS+=("${pg_flag}")
DB_ARGS+=("${value}")
fi
}

check_config "db_name" "$NAME" "-d"
check_config "db_host" "$HOST" "-h"
check_config "db_port" "$PORT" "-p"
check_config "db_user" "$USER" "-U"
# check_config "db_password" "$PASSWORD"
check_config "db_password" "$PASSWORD"

case "$1" in
-- | odoo)
Expand Down

0 comments on commit ed53a1e

Please sign in to comment.