summarylogtreecommitdiffstats
path: root/caddy.install
blob: d6fc74974b93c574d6c9cbe84b7ff5c1c52c1e43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
post_install() {
	systemctl --quiet daemon-reload
	systemctl --quiet preset caddy.service
}

post_upgrade() {
	systemctl --quiet daemon-reload
	systemctl --quiet try-restart caddy.service
}

pre_remove() {
	systemctl --quiet --no-reload disable --now caddy.service
}

post_remove() {
	systemctl --quiet daemon-reload
}