Sophie

Sophie

distrib > PLD > th > x86_64 > by-pkgid > 2ea2803a807eeaef46c6ecbb74ebcc15 > scriptlet

apache-mod_authz_dbd-2.4.56-1.x86_64.rpm

POSTIN

/bin/sh

if [ "$1" = "1" ]; then 
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
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/httpd ]; then
/sbin/service httpd restart 1>&2 || :;
fi
fi
else
if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then
if [ -f /var/lock/subsys/httpd ]; then
echo 'Run "/sbin/service httpd restart" to restart httpd service.'
fi
else	NORESTART=1	# for %%systemd_post if called after
fi
fi };
	
	[ -d /run/systemd/system ] && /bin/systemctl try-restart httpd.service || : 

fi

POSTUN

/bin/sh

if [ "$1" = "0" ]; then 
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
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/httpd ]; then
/sbin/service httpd restart 1>&2 || :;
fi
fi
else
if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then
if [ -f /var/lock/subsys/httpd ]; then
echo 'Run "/sbin/service httpd restart" to restart httpd service.'
fi
else	NORESTART=1	# for %%systemd_post if called after
fi
fi };
	
	[ -d /run/systemd/system ] && /bin/systemctl try-restart httpd.service || : 

fi