From 85e1a222f7ed8e74003f781436d8a134cb4b768d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 6 Dec 2018 14:49:27 +0100 Subject: [PATCH] Add call to 'authselect check' See https://src.fedoraproject.org/rpms/systemd/pull-request/12#comment-18052. --- systemd.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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