File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packaging/common/cfengine-hub Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ generate_new_postgres_conf() {
376
376
}
377
377
378
378
# POSTGRES RELATED
379
- BACKUP_DIR=$PREFIX /backup-before-postgres10 -migration
379
+ BACKUP_DIR=$PREFIX /backup-before-postgres11 -migration
380
380
if [ ! -d $PREFIX /state/pg/data ]; then
381
381
mkdir -p $PREFIX /state/pg/data
382
382
chown -R cfpostgres $PREFIX /state/pg
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ if is_upgrade; then
15
15
fi
16
16
fi
17
17
18
- BACKUP_DIR=$PREFIX /backup-before-postgres10 -migration
18
+ BACKUP_DIR=$PREFIX /backup-before-postgres11 -migration
19
19
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
22
22
if [ -d " $BACKUP_DIR /data" ]; then
23
23
cf_console echo " Old backup in $BACKUP_DIR already exists. Please remove before attempting upgrade."
24
24
exit 1
You can’t perform that action at this time.
0 commit comments