@@ -230,16 +230,23 @@ standard_initdb 'initdb'
230
230
231
231
pg_upgrade$PG_UPGRADE_OPTS -d" ${PGDATA} .old" -D" ${PGDATA} " -b" $oldbindir " -B" $bindir " -p" $PGPORT " -P" $PGPORT "
232
232
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
238
242
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
243
250
244
251
pg_ctl start -l" $logdir /postmaster2.log" -o" $POSTMASTER_OPTS " -w
245
252