packaging: setup: added a test on postgres status

It covers for cases where the postgresql service reports
status up but the server is not ready to receive connections.
In such cases the setup fails on DB operations.

This patch updates the change introduced by patch c048ec2d942c

Change-Id: I9b5c6ebadb03077e9173e64548883407ca69b502
Bug-Url: https://bugzilla.redhat.com/1029969
Signed-off-by: Alex Lourie <alourie@redhat.com>
packaging: setup: set correct umask for execution

Change-Id: Ie28c067dbab0e237fa482f2f0f7358d65e1f2ecd
Signed-off-by: Alex Lourie <alourie@redhat.com>