Sophie

Sophie

distrib > PLD > th > x86_64 > by-pkgid > 5fee481492fba134851372991e9be544 > scriptlet

lighttpd-mod_indexfile-1.4.69-1.x86_64.rpm

POSTIN

/bin/sh

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