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 @@ -19,11 +19,12 @@ BACKUP_DIR=$PREFIX/backup-before-postgres10-migration
1919
2020# If upgrading from a version below 3.12 that has PostgreSQL, and the data dir exists.
2121if is_upgrade && egrep ' ^3\.([6-9]|1[01])\.' " $PREFIX /UPGRADED_FROM.txt" > /dev/null && [ -d " $PREFIX /state/pg/data" ]; then
22- if [ -d " $BACKUP_DIR " ]; then
22+ 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
2525 fi
2626 cf_console echo " Attempting to migrate Mission Portal database. This can break stuff."
27+ cf_console echo " Copy will be created in $BACKUP_DIR dir."
2728 cf_console echo " It can be disabled by shutting down CFEngine and removing/renaming $PREFIX /state/pg/data prior to upgrade."
2829 cf_console echo " Press Ctrl-C in the next 15 seconds if you want to cancel..."
2930 sleep 15
You can’t perform that action at this time.
0 commit comments