fix bashism in postgres service