diff options
author | Andreas Linz | 2016-09-30 12:50:51 +0200 |
---|---|---|
committer | Andreas Linz | 2016-10-06 12:12:50 +0200 |
commit | 8ba84c849f9a4dcdef790aa7c10fe535bf381ed8 (patch) | |
tree | 95f4e6acdd16feacfc383adfb5b03d90137de5fb | |
parent | 581b5d1b111efc70058be429c24ec7be6fcb1ecf (diff) | |
download | aur-8ba84c849f9a4dcdef790aa7c10fe535bf381ed8.tar.gz |
Do not reload the systemd-daemon or stop caddy
-rw-r--r-- | caddy-full-bin.install | 17 |
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 } |