| 1 | #!/bin/bash |
| 2 | set -eux; |
| 3 | |
| 4 | curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg |
| 5 | curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list |
| 6 | apt update |
| 7 | apt install caddy |
| 8 | |
| 9 | mkdir -p /var/www/html |
| 10 | chown -R caddy:caddy /var/www |