Skip to content

Commit 155bbe4

Browse files
committed
Add timeout to pgpro_upgrade call
1 parent d6005b4 commit 155bbe4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nsis/postgresql.nsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,8 +512,9 @@ Section $(PostgreSQLString) sec1
512512
; run pgpro-upgrade script and
513513

514514
DetailPrint "Performing catalog upgradeon $DATA_DIR"
515-
nsExec::ExecToStack '"$INSTDIR\scripts\pgpro_upgrade" "$DATA_DIR"'
515+
nsExec::ExecToStack /TIMEOUT=120000 '"$INSTDIR\scripts\pgpro_upgrade" "$DATA_DIR"'
516516
Pop $0
517+
DetailPrint "pgpro_upgrade return $0"
517518
Pop $1 # printed text, up to ${NSIS_MAX_STRLEN}
518519
DetailPrint "$1"
519520

0 commit comments

Comments
 (0)