Skip to content

Commit

Permalink
Remove DB_NAME override
Browse files Browse the repository at this point in the history
  • Loading branch information
thatnerdjosh committed Apr 7, 2024
1 parent ed53a1e commit 06268bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions 15.0/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ fi
# and pass them as arguments to the odoo process if not present in the config file
: ${HOST:=${DB_PORT_5432_TCP_ADDR:='db'}}
: ${PORT:=${DB_PORT_5432_TCP_PORT:=5432}}
: ${NAME:=${DB_ENV_POSTGRES_NAME:=${POSTGRES_NAME:='postgres'}}}
: ${USER:=${DB_ENV_POSTGRES_USER:=${POSTGRES_USER:='odoo'}}}
: ${PASSWORD:=${DB_ENV_POSTGRES_PASSWORD:=${POSTGRES_PASSWORD:='odoo'}}}

ODOO_ARGS=()
DB_ARGS=()
DB_ARGS=("-d", "postgres")

function check_config() {
param="$1"
Expand All @@ -36,7 +35,6 @@ function check_config() {
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"
Expand Down
4 changes: 1 addition & 3 deletions 16.0/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ fi
# and pass them as arguments to the odoo process if not present in the config file
: ${HOST:=${DB_PORT_5432_TCP_ADDR:='db'}}
: ${PORT:=${DB_PORT_5432_TCP_PORT:=5432}}
: ${NAME:=${DB_ENV_POSTGRES_NAME:=${POSTGRES_NAME:='postgres'}}}
: ${USER:=${DB_ENV_POSTGRES_USER:=${POSTGRES_USER:='odoo'}}}
: ${PASSWORD:=${DB_ENV_POSTGRES_PASSWORD:=${POSTGRES_PASSWORD:='odoo'}}}

ODOO_ARGS=()
DB_ARGS=()
DB_ARGS=("-d", "postgres")

function check_config() {
param="$1"
Expand All @@ -36,7 +35,6 @@ function check_config() {
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"
Expand Down
4 changes: 1 addition & 3 deletions 17.0/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ fi
# and pass them as arguments to the odoo process if not present in the config file
: ${HOST:=${DB_PORT_5432_TCP_ADDR:='db'}}
: ${PORT:=${DB_PORT_5432_TCP_PORT:=5432}}
: ${NAME:=${DB_ENV_POSTGRES_NAME:=${POSTGRES_NAME:='postgres'}}}
: ${USER:=${DB_ENV_POSTGRES_USER:=${POSTGRES_USER:='odoo'}}}
: ${PASSWORD:=${DB_ENV_POSTGRES_PASSWORD:=${POSTGRES_PASSWORD:='odoo'}}}

ODOO_ARGS=()
DB_ARGS=()
DB_ARGS=("-d", "postgres")

function check_config() {
param="$1"
Expand All @@ -36,7 +35,6 @@ function check_config() {
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"
Expand Down

0 comments on commit 06268bf

Please sign in to comment.