summarylogtreecommitdiffstats
path: root/caddy.install
diff options
context:
space:
mode:
Diffstat (limited to 'caddy.install')
-rw-r--r--caddy.install8
1 files changed, 6 insertions, 2 deletions
diff --git a/caddy.install b/caddy.install
index aca8c4a021a5..94fd46d64239 100644
--- a/caddy.install
+++ b/caddy.install
@@ -1,7 +1,11 @@
post_install() {
- setcap 'cap_net_bind_service=+ep' usr/bin/caddy
+ getent passwd www-data || useradd --system -s /usr/bin/nologin -d / -U www-data
+
+ mkdir -p /etc/ssl/caddy
+ chmod 770 /etc/ssl/caddy
+ chown www-data:www-data /etc/ssl/caddy
}
post_upgrade() {
- post_install
+ post_install
}