Sophie

Sophie

distrib > Fedora > 15 > x86_64 > media > os > by-pkgid > e6c0657778e6b714e6ec3ef1c19acb75 > scriptlet

nss_ldap-265-8.fc15.i686.rpm

PREIN

/bin/sh
# If we didn't already have a config file for this package, but we did have one
# for the old nss_ldap package, copy the configuration to a temporary location.
if ! test -s /etc/nss_ldap.conf ; then
	if test -s /etc/ldap.conf ; then
		cp -p /etc/ldap.conf /etc/nss_ldap.conf.8aa689ed-d62c-4003-ad78-aa1d09887ef4
	fi
fi
if ! test -s /etc/nss_ldap.secret ; then
	if test -s /etc/ldap.secret ; then
		cp -p /etc/ldap.secret /etc/nss_ldap.secret.8aa689ed-d62c-4003-ad78-aa1d09887ef4
	fi
fi

POSTIN

/bin/sh
/sbin/ldconfig
# If we created a temporary configuration in %pre, replace the one our package
# put down with the old one.
if test -s /etc/nss_ldap.conf.8aa689ed-d62c-4003-ad78-aa1d09887ef4 ; then
	mv /etc/nss_ldap.conf.8aa689ed-d62c-4003-ad78-aa1d09887ef4 /etc/nss_ldap.conf
fi
if test -s /etc/nss_ldap.secret.8aa689ed-d62c-4003-ad78-aa1d09887ef4 ; then
	mv /etc/nss_ldap.secret.8aa689ed-d62c-4003-ad78-aa1d09887ef4 /etc/nss_ldap.secret
fi