File: preinst

package info (click to toggle)
autolog 0.35-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 148 kB
  • ctags: 60
  • sloc: ansic: 432; makefile: 57; sh: 23
file content (9 lines) | stat: -rw-r--r-- 281 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
#! /bin/sh
if grep -q "#-- autolog begin" /etc/crontab; then
	echo -n Removing old autolog entry from /etc/crontab...
	cp /etc/crontab /etc/crontab.new
	sed -e '/#-- autolog begin/,/#-- autolog end/d' </etc/crontab.new >/etc/crontab
	rm /etc/crontab.new
	echo done.
fi
#DEBHELPER#