Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions runtime/functions
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ map_uidgid() {
create_datadir() {
echo "Initializing datadir..."
mkdir -p ${PG_HOME}
if [[ -f ${PG_DATADIR} ]]; then
chmod 0700 ${PG_DATADIR}
fi
if [[ -d ${PG_DATADIR} ]]; then
chmod 0600 $( find ${PG_DATADIR} -type f )
chmod 0700 $( find ${PG_DATADIR} -type d )
chmod 0700 ${PG_DATADIR}
fi
chown -R ${PG_USER}:${PG_USER} ${PG_HOME}
}
Expand Down