We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f02df77 commit e792e0aCopy full SHA for e792e0a
1 file changed
runtime/functions
@@ -28,8 +28,8 @@ create_datadir() {
28
echo "Initializing datadir..."
29
mkdir -p ${PG_HOME}
30
if [[ -d ${PG_DATADIR} ]]; then
31
- find ${PG_DATADIR} -type f -exec chmod 0600 {} \;
32
- find ${PG_DATADIR} -type d -exec chmod 0700 {} \;
+ chmod 0600 $( find ${PG_DATADIR} -type f )
+ chmod 0700 $( find ${PG_DATADIR} -type d )
33
fi
34
chown -R ${PG_USER}:${PG_USER} ${PG_HOME}
35
}
0 commit comments