We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 572b503 + 5ebb858 commit 4798a9dCopy full SHA for 4798a9d
1 file changed
packaging/common/cfengine-hub/preinstall.sh
@@ -15,8 +15,8 @@ if is_upgrade; then
15
fi
16
17
18
-# When PostgreSQL changes major version we need to migrate. CFEngine 3.25 uses PostgreSQL 17.0 so any version 3.24 or older needs migration.
19
-if is_upgrade && egrep '^3\.([6-9]|1[0-9]|2[0-4])\.' "$PREFIX/UPGRADED_FROM.txt" >/dev/null && [ -d "$PREFIX/state/pg/data" ]; then
+# When PostgreSQL changes major version we need to migrate. CFEngine 3.27 uses PostgreSQL 18.0 so any version 3.26 or older needs migration.
+if is_upgrade && egrep '^3\.([6-9]|1[0-9]|2[0-6])\.' "$PREFIX/UPGRADED_FROM.txt" >/dev/null && [ -d "$PREFIX/state/pg/data" ]; then
20
alias migrating_postgres='true'
21
else
22
alias migrating_postgres='false'
0 commit comments