Created
February 13, 2024 09:54
-
-
Save jiri001meitner/e140faa15ea80b8d5489386c8d303907 to your computer and use it in GitHub Desktop.
How to install caddy on Debian based OS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if ! command -v curl; then apt -y install curl; fi | |
curl https://dl.cloudsmith.io/public/caddy/stable/gpg.key > /etc/apt/trusted.gpg.d/caddy.asc | |
echo 'deb [signed-by=/etc/apt/trusted.gpg.d/caddy.asc] https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version main' >/etc/apt/sources.list.d/caddy.list | |
chmod 644 /etc/apt/{trusted.gpg.d/caddy.asc,sources.list.d/caddy.list} | |
apt update | |
apt install caddy -y | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment