db_password is required for Odoo to start

This commit is contained in:
Josh Santos 2024-04-01 08:06:37 -04:00
parent 6d3a90c7db
commit ed53a1e73a
No known key found for this signature in database
GPG Key ID: F40E8260EF912E41
3 changed files with 18 additions and 9 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)