File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packaging/common/cfengine-hub Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,12 @@ BACKUP_DIR=$PREFIX/backup-before-postgres10-migration
19
19
20
20
# If upgrading from a version below 3.12 that has PostgreSQL, and the data dir exists.
21
21
if 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
23
23
cf_console echo " Old backup in $BACKUP_DIR already exists. Please remove before attempting upgrade."
24
24
exit 1
25
25
fi
26
26
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."
27
28
cf_console echo " It can be disabled by shutting down CFEngine and removing/renaming $PREFIX /state/pg/data prior to upgrade."
28
29
cf_console echo " Press Ctrl-C in the next 15 seconds if you want to cancel..."
29
30
sleep 15
You can’t perform that action at this time.
0 commit comments