summarylogtreecommitdiffstats
path: root/rsbackup.install
blob: 1b08daefb9fff45fa7b00b17322cd48294717a59 (plain)
1
2
3
4
5
6
7
pre_remove() {
	# Clean up empty tmpfiles.d files and folders
	[ -s /etc/rsbackup/local ] || rm -f /etc/rsbackup/local
	rmdir --ignore-fail-on-non-empty /etc/rsbackup/hosts.d
	rmdir --ignore-fail-on-non-empty /var/log/backup
	rmdir --ignore-fail-on-non-empty /var/lib/rsbackup/snapshots
}