mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-24 22:27:41 -05:00
The upgrade on RHEL9 needs to update /etc/sysconfig/ipa-dnskeysyncd with DNSSEC_TOKENS_DIR and DNSSEC_SOFTHSM_PIN because those environment variables are used by the systemd unit for ipa-dnskeysyncd. Currently the upgrade skips this step because of a wrong comparison when defining the constants: HAS_PKCS11_OPENSSL_ENGINE = osinfo.version_number == (9,) The above evaluates to false because osinfo.version_number is a tuple with (9, minor_version). Replace the comparison with osinfo.version_number[0] == 9 to make sure that the upgrade code is properly called on RHEL 9.x Fixes: https://pagure.io/freeipa/issue/9913 Signed-off-by: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com>