db_password is required for Odoo to start
This commit is contained in:
parent
6d3a90c7db
commit
ed53a1e73a
@ -29,15 +29,18 @@ function check_config() {
|
|||||||
ODOO_ARGS+=("--${param}")
|
ODOO_ARGS+=("--${param}")
|
||||||
ODOO_ARGS+=("${value}")
|
ODOO_ARGS+=("${value}")
|
||||||
|
|
||||||
|
# Only add to DB_ARGS if pg_flag is set
|
||||||
|
if [[ -n "$pg_flag" ]]; then
|
||||||
DB_ARGS+=("${pg_flag}")
|
DB_ARGS+=("${pg_flag}")
|
||||||
DB_ARGS+=("${value}")
|
DB_ARGS+=("${value}")
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
check_config "db_name" "$NAME" "-d"
|
check_config "db_name" "$NAME" "-d"
|
||||||
check_config "db_host" "$HOST" "-h"
|
check_config "db_host" "$HOST" "-h"
|
||||||
check_config "db_port" "$PORT" "-p"
|
check_config "db_port" "$PORT" "-p"
|
||||||
check_config "db_user" "$USER" "-U"
|
check_config "db_user" "$USER" "-U"
|
||||||
# check_config "db_password" "$PASSWORD"
|
check_config "db_password" "$PASSWORD"
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-- | odoo)
|
-- | odoo)
|
||||||
|
@ -29,15 +29,18 @@ function check_config() {
|
|||||||
ODOO_ARGS+=("--${param}")
|
ODOO_ARGS+=("--${param}")
|
||||||
ODOO_ARGS+=("${value}")
|
ODOO_ARGS+=("${value}")
|
||||||
|
|
||||||
|
# Only add to DB_ARGS if pg_flag is set
|
||||||
|
if [[ -n "$pg_flag" ]]; then
|
||||||
DB_ARGS+=("${pg_flag}")
|
DB_ARGS+=("${pg_flag}")
|
||||||
DB_ARGS+=("${value}")
|
DB_ARGS+=("${value}")
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
check_config "db_name" "$NAME" "-d"
|
check_config "db_name" "$NAME" "-d"
|
||||||
check_config "db_host" "$HOST" "-h"
|
check_config "db_host" "$HOST" "-h"
|
||||||
check_config "db_port" "$PORT" "-p"
|
check_config "db_port" "$PORT" "-p"
|
||||||
check_config "db_user" "$USER" "-U"
|
check_config "db_user" "$USER" "-U"
|
||||||
# check_config "db_password" "$PASSWORD"
|
check_config "db_password" "$PASSWORD"
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-- | odoo)
|
-- | odoo)
|
||||||
|
@ -29,15 +29,18 @@ function check_config() {
|
|||||||
ODOO_ARGS+=("--${param}")
|
ODOO_ARGS+=("--${param}")
|
||||||
ODOO_ARGS+=("${value}")
|
ODOO_ARGS+=("${value}")
|
||||||
|
|
||||||
|
# Only add to DB_ARGS if pg_flag is set
|
||||||
|
if [[ -n "$pg_flag" ]]; then
|
||||||
DB_ARGS+=("${pg_flag}")
|
DB_ARGS+=("${pg_flag}")
|
||||||
DB_ARGS+=("${value}")
|
DB_ARGS+=("${value}")
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
check_config "db_name" "$NAME" "-d"
|
check_config "db_name" "$NAME" "-d"
|
||||||
check_config "db_host" "$HOST" "-h"
|
check_config "db_host" "$HOST" "-h"
|
||||||
check_config "db_port" "$PORT" "-p"
|
check_config "db_port" "$PORT" "-p"
|
||||||
check_config "db_user" "$USER" "-U"
|
check_config "db_user" "$USER" "-U"
|
||||||
# check_config "db_password" "$PASSWORD"
|
check_config "db_password" "$PASSWORD"
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-- | odoo)
|
-- | odoo)
|
||||||
|
Loading…
Reference in New Issue
Block a user