Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > abe7635cda46924581ddbf65978f5c30 > scriptlet

denyhosts-2.6-2mdv2009.1.noarch.rpm

PREUN

/bin/sh
/usr/share/rpm-helper/del-service denyhosts $1 denyhosts

POSTIN

/bin/sh
# Note that we do not automaticaly run --migrate, because we can't be
# sure that all of the hosts.deny entries were created by denyhosts
/usr/share/rpm-helper/add-service denyhosts $1 denyhosts 

touch /var/log/denyhosts
touch /var/lib/denyhosts/allowed-warned-hosts
touch /var/lib/denyhosts/hosts
touch /var/lib/denyhosts/hosts-restricted
touch /var/lib/denyhosts/hosts-root
touch /var/lib/denyhosts/hosts-valid
touch /var/lib/denyhosts/offset
touch /var/lib/denyhosts/suspicious-logins
touch /var/lib/denyhosts/sync-hosts
touch /var/lib/denyhosts/users-hosts
touch /var/lib/denyhosts/users-invalid
touch /var/lib/denyhosts/users-valid

POSTUN

/bin/sh
if [ $1 -ge 1 ] ; then
  service denyhosts condrestart >/dev/null 2>&1
fi