Skip to content

Commit 3f7c82d

Browse files
committed
Remove SEED variable
1 parent 40564ac commit 3f7c82d

File tree

3 files changed

+6
-24
lines changed

3 files changed

+6
-24
lines changed

15.0/entrypoint.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ fi
1313
: ${NAME:=${DB_ENV_POSTGRES_NAME:=${POSTGRES_NAME:='postgres'}}}
1414
: ${USER:=${DB_ENV_POSTGRES_USER:=${POSTGRES_USER:='odoo'}}}
1515
: ${PASSWORD:=${DB_ENV_POSTGRES_PASSWORD:=${POSTGRES_PASSWORD:='odoo'}}}
16-
: ${SEED:=${DB_ENV_SEED:=false}}
1716

1817
DB_ARGS=()
19-
ODOO_ARGS=()
2018
function check_config() {
2119
param="$1"
2220
value="$2"
@@ -33,23 +31,19 @@ check_config "db_port" "$PORT"
3331
check_config "db_user" "$USER"
3432
check_config "db_password" "$PASSWORD"
3533

36-
if "$SEED" ; then
37-
ODOO_ARGS+=("-i base")
38-
fi
39-
4034
case "$1" in
4135
-- | odoo)
4236
shift
4337
if [[ "$1" == "scaffold" ]] ; then
4438
exec odoo "$@"
4539
else
4640
wait-for-psql.py ${DB_ARGS[@]} --timeout=30
47-
exec odoo "$@" "${DB_ARGS[@]}" "${ODOO_ARGS[@]}"
41+
exec odoo "$@" "${DB_ARGS[@]}"
4842
fi
4943
;;
5044
-*)
5145
wait-for-psql.py ${DB_ARGS[@]} --timeout=30
52-
exec odoo "$@" "${DB_ARGS[@]}" "${ODOO_ARGS[@]}"
46+
exec odoo "$@" "${DB_ARGS[@]}"
5347
;;
5448
*)
5549
exec "$@"

16.0/entrypoint.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ fi
1313
: ${NAME:=${DB_ENV_POSTGRES_NAME:=${POSTGRES_NAME:='postgres'}}}
1414
: ${USER:=${DB_ENV_POSTGRES_USER:=${POSTGRES_USER:='odoo'}}}
1515
: ${PASSWORD:=${DB_ENV_POSTGRES_PASSWORD:=${POSTGRES_PASSWORD:='odoo'}}}
16-
: ${SEED:=${DB_ENV_SEED:=false}}
1716

1817
DB_ARGS=()
19-
ODOO_ARGS=()
2018
function check_config() {
2119
param="$1"
2220
value="$2"
@@ -33,23 +31,19 @@ check_config "db_port" "$PORT"
3331
check_config "db_user" "$USER"
3432
check_config "db_password" "$PASSWORD"
3533

36-
if "$SEED" ; then
37-
ODOO_ARGS+=("-i base")
38-
fi
39-
4034
case "$1" in
4135
-- | odoo)
4236
shift
4337
if [[ "$1" == "scaffold" ]] ; then
4438
exec odoo "$@"
4539
else
4640
wait-for-psql.py ${DB_ARGS[@]} --timeout=30
47-
exec odoo "$@" "${DB_ARGS[@]}" "${ODOO_ARGS[@]}"
41+
exec odoo "$@" "${DB_ARGS[@]}"
4842
fi
4943
;;
5044
-*)
5145
wait-for-psql.py ${DB_ARGS[@]} --timeout=30
52-
exec odoo "$@" "${DB_ARGS[@]}" "${ODOO_ARGS[@]}"
46+
exec odoo "$@" "${DB_ARGS[@]}"
5347
;;
5448
*)
5549
exec "$@"

17.0/entrypoint.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ fi
1313
: ${NAME:=${DB_ENV_POSTGRES_NAME:=${POSTGRES_NAME:='postgres'}}}
1414
: ${USER:=${DB_ENV_POSTGRES_USER:=${POSTGRES_USER:='odoo'}}}
1515
: ${PASSWORD:=${DB_ENV_POSTGRES_PASSWORD:=${POSTGRES_PASSWORD:='odoo'}}}
16-
: ${SEED:=${DB_ENV_SEED:=false}}
1716

1817
DB_ARGS=()
19-
ODOO_ARGS=()
2018
function check_config() {
2119
param="$1"
2220
value="$2"
@@ -33,23 +31,19 @@ check_config "db_port" "$PORT"
3331
check_config "db_user" "$USER"
3432
check_config "db_password" "$PASSWORD"
3533

36-
if "$SEED" ; then
37-
ODOO_ARGS+=("-i base")
38-
fi
39-
4034
case "$1" in
4135
-- | odoo)
4236
shift
4337
if [[ "$1" == "scaffold" ]] ; then
4438
exec odoo "$@"
4539
else
4640
wait-for-psql.py ${DB_ARGS[@]} --timeout=30
47-
exec odoo "$@" "${DB_ARGS[@]}" "${ODOO_ARGS[@]}"
41+
exec odoo "$@" "${DB_ARGS[@]}"
4842
fi
4943
;;
5044
-*)
5145
wait-for-psql.py ${DB_ARGS[@]} --timeout=30
52-
exec odoo "$@" "${DB_ARGS[@]}" "${ODOO_ARGS[@]}"
46+
exec odoo "$@" "${DB_ARGS[@]}"
5347
;;
5448
*)
5549
exec "$@"

0 commit comments

Comments
 (0)