mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 16:25:53 +00:00
Update database schema setup in install script
Replaced environment variable exports with psql command to build database schema.
This commit is contained in:
@@ -45,10 +45,7 @@ npm run build
|
||||
msg_info "Built Domain-Locker"
|
||||
|
||||
msg_info "Building Database schema"
|
||||
export DOMAIN_LOCKER_DB_NAME=${PG_DB_NAME}
|
||||
export DOMAIN_LOCKER_DB_USER=${PG_DB_USER}
|
||||
export DOMAIN_LOCKER_DB_PASSWORD=${PG_DB_PASS}
|
||||
bash /opt/domain-locker/db/setup-postgres.sh
|
||||
psql -h "$DL_PG_HOST" -p "$DL_PG_PORT" -U "$DL_PG_USER" -d "$DL_PG_NAME" -f "/opt/domain-locker/db/schema.sql"
|
||||
msg_ok "Built Database schema"
|
||||
|
||||
msg_info "Creating Service"
|
||||
|
||||
Reference in New Issue
Block a user