File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -514,9 +514,17 @@ _main() {
514514 echo " Moving existing data files into OLD temporary directory"
515515 echo " -------------------------------------------------------"
516516 if [ $MOVING_TO_NEW_STRUCTURE -eq 0 ]; then
517- find " ${PGDATA} " -mindepth 1 -maxdepth 1 -not -name " old" -exec mv {} " ${OLD} /" \;
517+ find " ${PGDATA} " \
518+ -mindepth 1 -maxdepth 1 \
519+ -not -name " old" \
520+ -not -name " upgrade_in_progress.lock" \
521+ -exec mv {} " ${OLD} /" \;
518522 else
519- find /var/lib/postgresql -mindepth 1 -maxdepth 1 -not -name 18 -exec mv {} " ${OLD} /" \;
523+ find /var/lib/postgresql \
524+ -mindepth 1 -maxdepth 1 \
525+ -not -name 18 \
526+ -not -name " upgrade_in_progress.lock" \
527+ -exec mv {} " ${OLD} /" \;
520528 fi
521529 echo " -------------------------------------------------------------------"
522530 echo " Moving existing data files into OLD temporary directory is complete"
You can’t perform that action at this time.
0 commit comments