Sophie

Sophie

distrib > Mageia > 6 > armv5tl > by-pkgid > 132b3c8cefcbf26a6ea3e75025de2cfb > scriptlet

denyhosts-3.0-5.1.mga6.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/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