Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 417430467edbfddeff7f7ea363540126 > scriptlet

proftpd-mod_wrap-1.3.1rc1-1.amd64.rpm

POSTIN

/bin/sh

if [ "$1" = "1" ]; then 
	if grep -iEqs "^ServerType[[:space:]]+inetd" /etc/ftpd/proftpd.conf; then 
		{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/rc-inetd ] && . /etc/sysconfig/rc-inetd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/rc-inetd ]; then
/sbin/service rc-inetd reload 1>&2 || :;
fi
fi };	elif grep -iEqs "^ServerType[[:space:]]+standalone" /etc/ftpd/proftpd.conf; then 
		{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/proftpd ] && . /etc/sysconfig/proftpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/proftpd ]; then
/sbin/service proftpd restart 1>&2 || :;
fi
fi };	fi 
fi

POSTUN

/bin/sh

if [ "$1" = "0" ]; then 
	if grep -iEqs "^ServerType[[:space:]]+inetd" /etc/ftpd/proftpd.conf; then 
		{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/rc-inetd ] && . /etc/sysconfig/rc-inetd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/rc-inetd ]; then
/sbin/service rc-inetd reload 1>&2 || :;
fi
fi };	elif grep -iEqs "^ServerType[[:space:]]+standalone" /etc/ftpd/proftpd.conf; then 
		{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/proftpd ] && . /etc/sysconfig/proftpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/proftpd ]; then
/sbin/service proftpd restart 1>&2 || :;
fi
fi };	fi 
fi