From 4b0c4f8262ef583dac0a62d31378096b8133b571 Mon Sep 17 00:00:00 2001 From: Edward <9326037+edwardoliveira@users.noreply.github.com> Date: Mon, 1 Jun 2020 15:12:38 -0300 Subject: [PATCH] Update scripts/restore_db.sh --- scripts/restore_db.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/restore_db.sh b/scripts/restore_db.sh index b160c2f83..d2c787141 100755 --- a/scripts/restore_db.sh +++ b/scripts/restore_db.sh @@ -114,11 +114,11 @@ DUMP=${CAMINHO_DUMP##*/} PGUSER=${PGUSER:-"sapl"} PGPASSWORD=${PGPASSWORD:-"sapl"} PGHOST=${PGHOST:-"localhost"} -PGPORT="$PORTA" +PGPORT=${PORTA:-"5432"} PGDATABASE=${PGDATABASE:-"sapl"} PGURL="postgresql://$PGUSER:$PGPASSWORD@$PGHOST:$PGPORT/$PGDATABASE" cria_diretorio_restauracoes restaura_base_de_dados gera_relatorio_base_de_dados -alerta_migracao \ No newline at end of file +alerta_migracao