Sophie

Sophie

distrib > PLD > th > x86_64 > by-pkgid > 8ed91ae5c7f77085c503b24081e29e0d > scriptlet

apache1-mod_auth_db-1.3.42-15.x86_64.rpm

POSTIN

/bin/sh

if [ "$1" = "1" ]; then 
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache restart 1>&2 || :;
fi
fi
else
if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then
if [ -f /var/lock/subsys/apache ]; then
echo 'Run "/sbin/service apache restart" to restart apache service.'
fi
else	NORESTART=1	# for %%systemd_post if called after
fi
fi };
fi

POSTUN

/bin/sh

if [ "$1" = "0" ]; then 
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache restart 1>&2 || :;
fi
fi
else
if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then
if [ -f /var/lock/subsys/apache ]; then
echo 'Run "/sbin/service apache restart" to restart apache service.'
fi
else	NORESTART=1	# for %%systemd_post if called after
fi
fi };
fi

Triggers

apache-mod_auth_db < 1.3.20-16

/bin/sh
sed -i -e '/^\(Add\|Load\)Module.*mod_auth_dbm\.\(so\|c\)/d' /etc/apache/apache.conf