Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 4da643fc73f7f009b20467c0f6a012db > scriptlet

proftpd-1.3.3g-1.fc14.i686.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