File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -510,18 +510,20 @@ Section $(PostgreSQLString) sec1
510
510
; there exist data directory. We need to stop service,
511
511
; run pgpro-upgrade script and
512
512
513
- ; DetailPrint "Performing catalog upgradeon $DATA_DIR"
514
- ; nsExec::ExecToStack '"$INSTDIR/scripts/pgpro_upgrade" "$DATA_DIR"'
515
- ; Pop $0
516
- ; Pop $1 # printed text, up to ${NSIS_MAX_STRLEN}
517
- ; DetailPrint "$1"
518
- StrCpy $1 $ServiceAccount_text
519
- StrCpy $2 " "
520
- StrCpy $3 ' "$INSTDIR/scripts/pgpro_upgrade" "$DATA_DIR"'
521
- StrCpy $4 0
522
- System::Call ' RunAs::RunAsW(w r1, w r2, w r3, *w .r4) i .r0 ? u'
523
- pop $0
524
- DetailPrint " pgpro_upgrade over runas return $0"
513
+ DetailPrint " Performing catalog upgradeon $DATA_DIR"
514
+ nsExec::ExecToStack ' "$INSTDIR/scripts/pgpro_upgrade" "$DATA_DIR"'
515
+ Pop $0
516
+ Pop $1 # printed text, up to ${NSIS_MAX_STRLEN}
517
+ DetailPrint " $1"
518
+
519
+ ; Don't work with empty password:
520
+ ; StrCpy $1 $ServiceAccount_text
521
+ ; StrCpy $2 ""
522
+ ; StrCpy $3 '"$INSTDIR/scripts/pgpro_upgrade" "$DATA_DIR"'
523
+ ; StrCpy $4 0
524
+ ; System::Call 'RunAs::RunAsW(w r1, w r2, w r3, *w .r4) i .r0 ? u'
525
+ ; pop $0
526
+ ; DetailPrint "pgpro_upgrade over runas return $0"
525
527
${endif}
526
528
527
529
DetailPrint " Start server service..."
You can’t perform that action at this time.
0 commit comments