mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add the includedir to krb5.conf on upgrades
https://fedorahosted.org/freeipa/ticket/3132
This commit is contained in:
parent
b64dc9362d
commit
a35d4dcbfd
@ -223,6 +223,7 @@ Requires: libsss_autofs
|
||||
Requires: autofs
|
||||
Requires: libnfsidmap
|
||||
Requires: nfs-utils
|
||||
Requires(post): policycoreutils
|
||||
|
||||
Obsoletes: ipa-client >= 1.0
|
||||
|
||||
@ -526,6 +527,21 @@ if [ $1 -eq 0 ]; then
|
||||
fi
|
||||
%endif # ! %{ONLY_CLIENT}
|
||||
|
||||
%post client
|
||||
if [ $1 -gt 1 ] ; then
|
||||
# Has the client been configured?
|
||||
restore=0
|
||||
test -f '/var/lib/ipa-client/sysrestore/sysrestore.index' && restore=$(wc -l '/var/lib/ipa-client/sysrestore/sysrestore.index' | awk '{print $1}')
|
||||
|
||||
if [ -f '/etc/sssd/sssd.conf' -a $restore -ge 2 ]; then
|
||||
if ! egrep -q '/var/lib/sss/pubconf/krb5.include.d/' /etc/krb5.conf 2>/dev/null ; then
|
||||
echo "includedir /var/lib/sss/pubconf/krb5.include.d/" > /etc/krb5.conf.ipanew
|
||||
cat /etc/krb5.conf >> /etc/krb5.conf.ipanew
|
||||
mv /etc/krb5.conf.ipanew /etc/krb5.conf
|
||||
/sbin/restorecon /etc/krb5.conf
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
%if ! %{ONLY_CLIENT}
|
||||
%files server -f server-python.list
|
||||
|
Loading…
Reference in New Issue
Block a user