From 85e1a222f7ed8e74003f781436d8a134cb4b768d Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Dec 06 2018 13:49:27 +0000 Subject: Add call to 'authselect check' See https://src.fedoraproject.org/rpms/systemd/pull-request/12#comment-18052. --- diff --git a/systemd.spec b/systemd.spec index ca26cfb..4397468 100644 --- a/systemd.spec +++ b/systemd.spec @@ -548,7 +548,7 @@ function mod_nss() { } FILE="$(readlink /etc/nsswitch.conf || echo /etc/nsswitch.conf)" -if [ "$FILE" = "/etc/authselect/nsswitch.conf" ]; then +if [ "$FILE" = "/etc/authselect/nsswitch.conf" ] && authselect check &>/dev/null; then mod_nss "/etc/authselect/user-nsswitch.conf" authselect apply-changes &> /dev/null || : else