Hi and thank you all! Looks good now :-)
Devrim, you might not remember me, but I met you at Nasdaq, Stockholm, a couple of years ago when you held a course. I asked you specifically what PG HA solution to chose.
I like your packaging work! Btw, I wonder why you include /etc/profile in the .bash_profile explicitly, because at least in my RHEL and CentOS installations I notice it is run twice when you login as postgres. Is there a situation when it is not called? Probably in most situations this is not an issue since for example scripts in /etc/profile.d/ should handle multiple calls, but I have a script there which can't know if it has been called before for this login session.
BR,
Christian