aboutsummarylogtreecommitdiffstats
path: root/caddy-full-bin.install
diff options
context:
space:
mode:
Diffstat (limited to 'caddy-full-bin.install')
-rw-r--r--caddy-full-bin.install17
1 files changed, 3 insertions, 14 deletions
diff --git a/caddy-full-bin.install b/caddy-full-bin.install
index b4f19a27f3eb..b9468b2bcce8 100644
--- a/caddy-full-bin.install
+++ b/caddy-full-bin.install
@@ -2,10 +2,6 @@ post_install() {
mkdir -p /etc/ssl/caddy && chown -R http:http /etc/ssl/caddy
}
-pre_upgrade() {
- systemctl stop caddy
-}
-
post_upgrade() {
systemctl daemon-reload
if [ $(vercmp $2 0.9.3-5) -lt 0 ]; then
@@ -18,14 +14,7 @@ $ userdel -f www-data
$ groupdel www-data
EOF
- echo "Changing ownership of /etc/ssl/caddy to http:http"
- chown -R http:http /etc/ssl/caddy
-}
-
-pre_remove() {
- systemctl stop caddy
-}
-
-post_remove() {
- systemctl daemon-reload
+ echo "Changing ownership of /etc/ssl/caddy to http:http"
+ chown -R http:http /etc/ssl/caddy
+fi
}