Skip to content

Commit 11f6873

Browse files
authored
Merge pull request #102 from bjasko/patch-1
faster chmod if there are many objects to process
2 parents 416abff + e792e0a commit 11f6873

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

runtime/functions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ create_datadir() {
2929
echo "Initializing datadir..."
3030
mkdir -p ${PG_HOME}
3131
if [[ -d ${PG_DATADIR} ]]; then
32-
find ${PG_DATADIR} -type f -exec chmod 0600 {} \;
33-
find ${PG_DATADIR} -type d -exec chmod 0700 {} \;
32+
chmod 0600 $( find ${PG_DATADIR} -type f )
33+
chmod 0700 $( find ${PG_DATADIR} -type d )
3434
fi
3535
chown -R ${PG_USER}:${PG_USER} ${PG_HOME}
3636
}

0 commit comments

Comments
 (0)