File tree Expand file tree Collapse file tree 3 files changed +18
-9
lines changed Expand file tree Collapse file tree 3 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -29,15 +29,18 @@ function check_config() {
29
29
ODOO_ARGS+=(" --${param} " )
30
30
ODOO_ARGS+=(" ${value} " )
31
31
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
34
37
}
35
38
36
39
check_config " db_name" " $NAME " " -d"
37
40
check_config " db_host" " $HOST " " -h"
38
41
check_config " db_port" " $PORT " " -p"
39
42
check_config " db_user" " $USER " " -U"
40
- # check_config "db_password" "$PASSWORD"
43
+ check_config " db_password" " $PASSWORD "
41
44
42
45
case " $1 " in
43
46
-- | odoo)
Original file line number Diff line number Diff line change @@ -29,15 +29,18 @@ function check_config() {
29
29
ODOO_ARGS+=(" --${param} " )
30
30
ODOO_ARGS+=(" ${value} " )
31
31
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
34
37
}
35
38
36
39
check_config " db_name" " $NAME " " -d"
37
40
check_config " db_host" " $HOST " " -h"
38
41
check_config " db_port" " $PORT " " -p"
39
42
check_config " db_user" " $USER " " -U"
40
- # check_config "db_password" "$PASSWORD"
43
+ check_config " db_password" " $PASSWORD "
41
44
42
45
case " $1 " in
43
46
-- | odoo)
Original file line number Diff line number Diff line change @@ -29,15 +29,18 @@ function check_config() {
29
29
ODOO_ARGS+=(" --${param} " )
30
30
ODOO_ARGS+=(" ${value} " )
31
31
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
34
37
}
35
38
36
39
check_config " db_name" " $NAME " " -d"
37
40
check_config " db_host" " $HOST " " -h"
38
41
check_config " db_port" " $PORT " " -p"
39
42
check_config " db_user" " $USER " " -U"
40
- # check_config "db_password" "$PASSWORD"
43
+ check_config " db_password" " $PASSWORD "
41
44
42
45
case " $1 " in
43
46
-- | odoo)
You can’t perform that action at this time.
0 commit comments