Update database schema setup in install script
Replaced environment variable exports with psql command to build database schema.
This commit is contained in:
parent
e90536f4d6
commit
9aa319783e
@ -45,10 +45,7 @@ npm run build
|
|||||||
msg_info "Built Domain-Locker"
|
msg_info "Built Domain-Locker"
|
||||||
|
|
||||||
msg_info "Building Database schema"
|
msg_info "Building Database schema"
|
||||||
export DOMAIN_LOCKER_DB_NAME=${PG_DB_NAME}
|
psql -h "$DL_PG_HOST" -p "$DL_PG_PORT" -U "$DL_PG_USER" -d "$DL_PG_NAME" -f "/opt/domain-locker/db/schema.sql"
|
||||||
export DOMAIN_LOCKER_DB_USER=${PG_DB_USER}
|
|
||||||
export DOMAIN_LOCKER_DB_PASSWORD=${PG_DB_PASS}
|
|
||||||
bash /opt/domain-locker/db/setup-postgres.sh
|
|
||||||
msg_ok "Built Database schema"
|
msg_ok "Built Database schema"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user