Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 7358f97ebcb49ed97c9a64b2ba23f44a > scriptlet

apache1-mod_vhost_alias-1.3.37-7.amd64.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 [ -f /var/lock/subsys/apache ]; then
/sbin/service apache restart 1>&2 || :;
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 [ -f /var/lock/subsys/apache ]; then
/sbin/service apache restart 1>&2 || :;
fi
fi };fi

Triggers

apache1-mod_vhost_alias < 1.3.33-1.85

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