From b767d8b4d58e354bd2dfe7111eb2ce6779074dbd Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Wed, 10 Jul 2024 18:09:25 +0200 Subject: [PATCH] System: High Availability: Settings - fail migration when configd has not been started. (https://github.com/opnsense/core/issues/7485) --- .../mvc/app/models/OPNsense/Core/Migrations/MHA1_0_0.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/opnsense/mvc/app/models/OPNsense/Core/Migrations/MHA1_0_0.php b/src/opnsense/mvc/app/models/OPNsense/Core/Migrations/MHA1_0_0.php index 8641e739c..b8528f8dd 100644 --- a/src/opnsense/mvc/app/models/OPNsense/Core/Migrations/MHA1_0_0.php +++ b/src/opnsense/mvc/app/models/OPNsense/Core/Migrations/MHA1_0_0.php @@ -57,6 +57,8 @@ class MHA1_0_0 extends BaseModelMigration if (!empty((string)$model->pfsyncenabled)) { $model->pfsyncversion = '1301'; // on upgrade keep legacy pfsync version } + } else { + throw new \Exception('Missing (configd) ha options list'); } } }