File: postinst

package info (click to toggle)
mrtg 2.5.2-1
  • links: PTS
  • area: contrib
  • in suites: hamm
  • size: 916 kB
  • ctags: 465
  • sloc: perl: 4,603; ansic: 2,132; makefile: 190; csh: 49; sh: 40
file content (11 lines) | stat: -rw-r--r-- 280 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh -e

# Remove crontab entry, because mrtg now uses /etc/cron.d/mrtg
if grep -q "#-- mrtg begin" /etc/crontab; then
	cp /etc/crontab /etc/crontab.tmp$$
	sed -e '/#-- mrtg begin/,/#-- mrtg end/d' </etc/crontab.tmp$$ \
		>/etc/crontab
	rm /etc/crontab.tmp$$
fi

#DEBHELPER#