Skip to content

Commit

Permalink
Merge pull request #152 from kkimurak/hotfix-chmod-failue
Browse files Browse the repository at this point in the history
fix PG_DATADIR initialization for cases when empty or contains too many files
  • Loading branch information
sameersbn authored Jun 28, 2023
2 parents 0c081e0 + ea51b26 commit 6f65c43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/functions
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ create_datadir() {
echo "Initializing datadir..."
mkdir -p ${PG_HOME}
if [[ -d ${PG_DATADIR} ]]; then
chmod 0600 $( find ${PG_DATADIR} -type f )
chmod 0700 $( find ${PG_DATADIR} -type d )
find ${PG_DATADIR} -type f | xargs chmod 0600
find ${PG_DATADIR} -type d | xargs chmod 0700
fi
chown -R ${PG_USER}:${PG_USER} ${PG_HOME}
}
Expand Down

0 comments on commit 6f65c43

Please sign in to comment.