diff options
Diffstat (limited to 'caddy-full-bin.install')
-rw-r--r-- | caddy-full-bin.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/caddy-full-bin.install b/caddy-full-bin.install new file mode 100644 index 000000000000..67f7a9567412 --- /dev/null +++ b/caddy-full-bin.install @@ -0,0 +1,20 @@ +post_install() { + getent passwd www-data || useradd --system --shell /usr/bin/nologin www-data + mkdir -p /etc/ssl/caddy && chown -R www-data:www-data /etc/ssl/caddy +} + +pre_upgrade() { + systemctl stop caddy +} + +post_upgrade() { + systemctl daemon-reload +} + +pre_remove() { + systemctl stop caddy +} + +post_remove() { + systemctl daemon-reload +} |