summarylogtreecommitdiffstats
path: root/pacman-auto-update.install
blob: 565cc0e1c1bf14c4bf86c7658cc5cc2ae6c5fed3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
post_install () {
	systemctl enable --now pacman-auto-update.timer || true
}

post_upgrade () {
	systemctl --system daemon-reload >/dev/null || true
	systemctl restart pacman-auto-update.timer || true
}

pre_remove () {
	systemctl disable --now pacman-auto-update.timer >/dev/null
}

post_remove () {
	systemctl --system daemon-reload >/dev/null || true
}