File tree Expand file tree Collapse file tree
packaging/common/cfengine-hub Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ generate_new_postgres_conf() {
376376}
377377
378378# POSTGRES RELATED
379- BACKUP_DIR=$PREFIX /backup-before-postgres10 -migration
379+ BACKUP_DIR=$PREFIX /backup-before-postgres11 -migration
380380if [ ! -d $PREFIX /state/pg/data ]; then
381381 mkdir -p $PREFIX /state/pg/data
382382 chown -R cfpostgres $PREFIX /state/pg
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ if is_upgrade; then
1515 fi
1616fi
1717
18- BACKUP_DIR=$PREFIX /backup-before-postgres10 -migration
18+ BACKUP_DIR=$PREFIX /backup-before-postgres11 -migration
1919
20- # If upgrading from a version below 3.12 that has PostgreSQL, and the data dir exists.
21- if is_upgrade && egrep ' ^3\.([6-9]|1[01 ])\.' " $PREFIX /UPGRADED_FROM.txt" > /dev/null && [ -d " $PREFIX /state/pg/data" ]; then
20+ # If upgrading from a version below 3.13 that has PostgreSQL, and the data dir exists.
21+ if is_upgrade && egrep ' ^3\.([6-9]|1[012 ])\.' " $PREFIX /UPGRADED_FROM.txt" > /dev/null && [ -d " $PREFIX /state/pg/data" ]; then
2222 if [ -d " $BACKUP_DIR /data" ]; then
2323 cf_console echo " Old backup in $BACKUP_DIR already exists. Please remove before attempting upgrade."
2424 exit 1
You can’t perform that action at this time.
0 commit comments