summarylogtreecommitdiffstats
path: root/caddy.install
diff options
context:
space:
mode:
authorIru Cai2017-12-22 14:08:50 +0800
committerIru Cai2017-12-22 14:08:50 +0800
commit0a95e0a331eb57bb3a01fdeec328664969c137a7 (patch)
treefa52d94ee7cd100f600797d9ad801452d86c7f42 /caddy.install
downloadaur-0a95e0a331eb57bb3a01fdeec328664969c137a7.tar.gz
first commit
Diffstat (limited to 'caddy.install')
-rw-r--r--caddy.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/caddy.install b/caddy.install
new file mode 100644
index 000000000000..d6fc74974b93
--- /dev/null
+++ b/caddy.install
@@ -0,0 +1,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
+}