Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > f4927d74d0806a7954f3a94568e64867 > scriptlet

openldap-backend-relay-2.3.31-1.amd64.rpm

PREUN

/bin/sh

if [ "$1" = "0" ]; then 
	/bin/sed -i -e 's/^[[:blank:]]*moduleload[[:blank:]]\+back_relay.la[[:blank:]]*$/# moduleload	back_relay.la/' /etc/openldap/slapd.conf 
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/ldap ] && . /etc/sysconfig/ldap
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/ldap ]; then
/sbin/service ldap restart 1>&2 || :;
else
echo 'Run "/sbin/service ldap start" to start OpenLDAP server.'
fi
fi };fi

POSTIN

/bin/sh

/bin/sed -i -e 's/^#[[:blank:]]*moduleload[[:blank:]]\+back_relay.la[[:blank:]]*$/moduleload	back_relay.la/' /etc/openldap/slapd.conf 
if [ "$1" = "1" ]; then 
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/ldap ] && . /etc/sysconfig/ldap
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/ldap ]; then
/sbin/service ldap restart 1>&2 || :;
else
echo 'Run "/sbin/service ldap start" to start OpenLDAP server.'
fi
fi };fi