Add call to 'authselect check'

See https://src.fedoraproject.org/rpms/systemd/pull-request/12#comment-18052.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2018-12-06 14:49:27 +01:00
parent 4ba08126b1
commit 85e1a222f7
1 changed files with 1 additions and 1 deletions

View File

@ -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