Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > contrib > by-pkgid > 722d7fe08e521069eaa66d51f59d0ed2 > scriptlet

mrtg-2.9.17-4mdk.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