File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -230,16 +230,23 @@ standard_initdb 'initdb'
230230
231231pg_upgrade $PG_UPGRADE_OPTS -d " ${PGDATA} .old" -D " ${PGDATA} " -b " $oldbindir " -B " $bindir " -p " $PGPORT " -P " $PGPORT "
232232
233- # make sure all directories and files have group permissions
234- if [ $( find ${PGDATA} -type f ! -perm 640 | wc -l) -ne 0 ]; then
235- echo " files in PGDATA with permission != 640" ;
236- exit 1;
237- fi
233+ # make sure all directories and files have group permissions, on Unix hosts
234+ # Windows hosts don't support Unix-y permissions.
235+ case $testhost in
236+ MINGW* ) ;;
237+ * ) if [ $( find ${PGDATA} -type f ! -perm 640 | wc -l) -ne 0 ]; then
238+ echo " files in PGDATA with permission != 640" ;
239+ exit 1;
240+ fi ;;
241+ esac
238242
239- if [ $( find ${PGDATA} -type d ! -perm 750 | wc -l) -ne 0 ]; then
240- echo " directories in PGDATA with permission != 750" ;
241- exit 1;
242- fi
243+ case $testhost in
244+ MINGW* ) ;;
245+ * ) if [ $( find ${PGDATA} -type d ! -perm 750 | wc -l) -ne 0 ]; then
246+ echo " directories in PGDATA with permission != 750" ;
247+ exit 1;
248+ fi ;;
249+ esac
243250
244251pg_ctl start -l " $logdir /postmaster2.log" -o " $POSTMASTER_OPTS " -w
245252
You can’t perform that action at this time.
0 commit comments