Skip to content

Commit

Permalink
Fixed error installation on non standard postgres db port
Browse files Browse the repository at this point in the history
Installation script was missing from `PGPORT` environment setup. That's
why it's can't install bareos on systems with non standard postgres
port. User gets error about connection problem and can't install. That's
PR will fix that error.
  • Loading branch information
JayDi85 committed Nov 1, 2018
1 parent 6f456aa commit 9b859f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/platforms/win32/winbareos.nsi
Expand Up @@ -270,7 +270,8 @@ ${EndIf}
LogEx::Write "PostgresPath=$PostgresPath"


# set postgres username and password in environment
# set postgres port, username and password in environment
System::Call 'kernel32::SetEnvironmentVariable(t "PGPORT", t "$DbPort")i.r0'
System::Call 'kernel32::SetEnvironmentVariable(t "PGUSER", t "$DbAdminUser")i.r0'
System::Call 'kernel32::SetEnvironmentVariable(t "PGPASSWORD", t "$DbAdminPassword")i.r0'

Expand Down

0 comments on commit 9b859f6

Please sign in to comment.