Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > 679af90aec56c681f8c5f4db553042b0 > scriptlet

denyhosts-3.1-3.mga7.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
  systemctl restart denyhosts.service >/dev/null 2>&1
fi