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