summarylogtreecommitdiffstats
path: root/caddy.install
blob: fa5b2fff3a46e207710345245c9973b7154592bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
post_install() {
    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
}