summarylogtreecommitdiffstats
path: root/rescached-git.install
blob: e932c887799956302d655b197281ba6adbb31ec4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
post_upgrade() {
	## Remove old ads file
	[[ -f /etc/rescached/hosts.ads ]] \
		&& rm -f /etc/rescached/hosts.ads

	## Fix wrong systemd service
	[[ -f /etc/systemd/system/rescached.service ]] \
		&& rm -f /etc/systemd/system/rescached.service

	systemctl daemon-reload

	echo ':: rescached service now installed in /usr/lib/systemd/system'
	echo ':: Please reenable the service if you want to start it at boot'
}