Sophie

Sophie

distrib > Fedora > 15 > x86_64 > media > os > by-pkgid > c0091d02f421b6445a99e65f8a271a35 > scriptlet

proftpd-1.3.4-0.8.rc2.fc15.x86_64.rpm

PREUN

/bin/sh
if [ $1 -eq 0 ]; then
	/sbin/service proftpd stop &>/dev/null || :
	/sbin/chkconfig --del proftpd || :
	/sbin/service xinetd reload &>/dev/null || :
	find /var/run/proftpd -depth -mindepth 1 |
		xargs rm -rf &>/dev/null || :
fi

POSTIN

/bin/sh
if [ $1 -eq 1 ]; then
	/sbin/chkconfig --add proftpd
	IFS=":"; cat /etc/passwd | \
	while { read username nu nu gid nu nu nu nu; }; do \
		if [ $gid -lt 100 -a "$username" != "ftp" ]; then
			echo $username >> /etc/ftpusers
		fi
	done
fi

POSTUN

/bin/sh
if [ $1 -ge 1 ]; then
	/sbin/service proftpd condrestart &>/dev/null || :
fi