summarylogtreecommitdiffstats
path: root/caddy.install
diff options
context:
space:
mode:
authorcarlwgeorge2017-05-14 00:38:52 -0500
committercarlwgeorge2017-05-14 00:38:52 -0500
commit4742fa13eda2be17311153bf7edf8b3a6ec1a121 (patch)
tree4903741af42e87de09693613d3d4aa34a36bca34 /caddy.install
downloadaur-4742fa13eda2be17311153bf7edf8b3a6ec1a121.tar.gz
0.10.2-1
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..f4d9695620e5
--- /dev/null
+++ b/caddy.install
@@ -0,0 +1,17 @@
+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 caddy.service
+ systemctl --quiet stop caddy.service
+}
+
+post_remove() {
+ systemctl --quiet daemon-reload
+}