Sophie

Sophie

distrib > Mandriva > 8.1 > i586 > by-pkgid > 3f7d4c89a2ecd958ce73ce001fdb3031 > scriptlet

mrtg-2.9.17-1mdk.i586.rpm

POSTIN

/bin/sh
 if ! grep '* * * * root /usr/bin/mrtg' /etc/crontab > /dev/null; then
  echo "" >> /etc/crontab
  echo "0-59/5 * * * * root /usr/bin/mrtg /var/www/html/mrtg/mrtg.cfg" >> /etc/crontab
 fi

POSTUN

/bin/sh
if [ "$1" = "0" ]; then
        grep -v '* * * * root /usr/bin/mrtg' /etc/crontab > /etc/crontab.new
        cp /etc/crontab.new /etc/crontab
fi