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