Previous implementation passed nothing to chmod when PG_DATADIR is empty. This results in chmod raises syntax error and wrong permissions will not be corrected : This is the cause of problem reported in sameersbn/docker-gitlab#2224
We also can see Argument list too long error when PG_DATADIR contains too many files / directories (restriction defined by ARG_MAX) : this is reported in #148
This PR make create_datadir() to handle those situations by using xargs.
Previous implementation passed nothing to
chmod
whenPG_DATADIR
is empty. This results inchmod
raises syntax error and wrong permissions will not be corrected : This is the cause of problem reported in sameersbn/docker-gitlab#2224We also can see
Argument list too long
error whenPG_DATADIR
contains too many files / directories (restriction defined by ARG_MAX) : this is reported in #148This PR make
create_datadir()
to handle those situations by usingxargs
.