Package proftpd: Scripts

Post install

if grep -qe '^[[:blank:]]*CharsetLocal' /etc/proftpd.conf; then
   echo "WARNING: iconv patch is disabled, do not use CharsetLocal/CharsetRemote" >&2
   echo "WARNING: see doc/modules/mod_lang.html for details" >&2
   echo "WARNING: autocommenting corresponding Options, please check" >&2
   subst 's/^\([[:blank:]]*CharsetLocal .*\)/# \1/' /etc/proftpd.conf
   subst 's/^\([[:blank:]]*CharsetRemote .*\)/# \1/' /etc/proftpd.conf
fi
if [ -e "/etc/control.d/facilities/proftpd" ]; then
    
if [ $1 -ge 2 ]; then 
	/usr/sbin/control-restore proftpd 
else 
	for facility in proftpd; do 
		/usr/sbin/control "$facility" standalone 
	done 
fi 

fi
/usr/sbin/post_service proftpd
Pre install

1
2
3
4
5
6
7
if [ -e "/etc/control.d/facilities/proftpd" ]; then
    
if [ $1 -ge 2 ]; then 
	/usr/sbin/control-dump proftpd 
fi 

fi
Pre uninstall

/usr/sbin/preun_service proftpd