Skip to content

Commit ed53a1e

Browse files
committed
db_password is required for Odoo to start
1 parent 6d3a90c commit ed53a1e

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

15.0/entrypoint.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,18 @@ function check_config() {
2929
ODOO_ARGS+=("--${param}")
3030
ODOO_ARGS+=("${value}")
3131

32-
DB_ARGS+=("${pg_flag}")
33-
DB_ARGS+=("${value}")
32+
# Only add to DB_ARGS if pg_flag is set
33+
if [[ -n "$pg_flag" ]]; then
34+
DB_ARGS+=("${pg_flag}")
35+
DB_ARGS+=("${value}")
36+
fi
3437
}
3538

3639
check_config "db_name" "$NAME" "-d"
3740
check_config "db_host" "$HOST" "-h"
3841
check_config "db_port" "$PORT" "-p"
3942
check_config "db_user" "$USER" "-U"
40-
# check_config "db_password" "$PASSWORD"
43+
check_config "db_password" "$PASSWORD"
4144

4245
case "$1" in
4346
-- | odoo)

16.0/entrypoint.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,18 @@ function check_config() {
2929
ODOO_ARGS+=("--${param}")
3030
ODOO_ARGS+=("${value}")
3131

32-
DB_ARGS+=("${pg_flag}")
33-
DB_ARGS+=("${value}")
32+
# Only add to DB_ARGS if pg_flag is set
33+
if [[ -n "$pg_flag" ]]; then
34+
DB_ARGS+=("${pg_flag}")
35+
DB_ARGS+=("${value}")
36+
fi
3437
}
3538

3639
check_config "db_name" "$NAME" "-d"
3740
check_config "db_host" "$HOST" "-h"
3841
check_config "db_port" "$PORT" "-p"
3942
check_config "db_user" "$USER" "-U"
40-
# check_config "db_password" "$PASSWORD"
43+
check_config "db_password" "$PASSWORD"
4144

4245
case "$1" in
4346
-- | odoo)

17.0/entrypoint.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,18 @@ function check_config() {
2929
ODOO_ARGS+=("--${param}")
3030
ODOO_ARGS+=("${value}")
3131

32-
DB_ARGS+=("${pg_flag}")
33-
DB_ARGS+=("${value}")
32+
# Only add to DB_ARGS if pg_flag is set
33+
if [[ -n "$pg_flag" ]]; then
34+
DB_ARGS+=("${pg_flag}")
35+
DB_ARGS+=("${value}")
36+
fi
3437
}
3538

3639
check_config "db_name" "$NAME" "-d"
3740
check_config "db_host" "$HOST" "-h"
3841
check_config "db_port" "$PORT" "-p"
3942
check_config "db_user" "$USER" "-U"
40-
# check_config "db_password" "$PASSWORD"
43+
check_config "db_password" "$PASSWORD"
4144

4245
case "$1" in
4346
-- | odoo)

0 commit comments

Comments
 (0)