entrypoint.sh: moved user mapping code to a function
entrypoint.sh: moved user mapping code to a function

arkkanoid/docker-postgresql,boky8/docker-postgresql,mental-docker/postgresql,logandg/docker-postgis,sameersbn/docker-postgresql,markrowsoft/docker-postgres-bdr,crobays/docker-postgresql,bokysan/docker-postgresql