Commit f9efe817 authored by Vitaly Lipatov's avatar Vitaly Lipatov

tune_sssd: fix nsswitch.conf changing for new machine

parent f23748ef
......@@ -86,9 +86,15 @@ else
fi
# TODO: Fedora has special command for change nssswitch.conf
#passwd: files sss
#shadow: tcb files sss
#group: files sss role
#gshadow: files sss
if ! grep -q " sss" /etc/nsswitch.conf ; then
subst "s| mysql| sss mysql|g" /etc/nsswitch.conf
for i in passwd shadow group gshadow ; do
subst "s|^\($i:.*\)files\(.*\)|\1files sss\2|g" /etc/nsswitch.conf
done
( cd /etc ; git diff nsswitch.conf | cat )
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment