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