File: postrm

package info (click to toggle)
chrony 1.10-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,504 kB
  • ctags: 2,064
  • sloc: ansic: 15,081; sh: 152; makefile: 107
file content (17 lines) | stat: -rw-r--r-- 429 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
set -e
# postrm for chrony John Hasler Dec 17 1998
rm -f /var/lib/chrony/*
install-info --quiet --remove chrony.info
if [ -x /usr/bin/update-menus ] ; then 
	/usr/bin/update-menus
fi
if [ "$1" = "purge" ] ; then
	rm -rf /var/lib/chrony
	rm -rf /var/log/chrony
	rm -rf /etc/cron.weekly/chrony
	rm -rf /etc/ppp/ip-up.d/chrony
	rm -rf /etc/ppp/ip-down.d/chrony
	rm -rf /etc/chrony
	update-rc.d chrony remove >/dev/null
fi