Last active
March 14, 2024 07:55
-
-
Save abdulwaheedsyed/ab58432be9ee2efb13c68bb0cf5be540 to your computer and use it in GitHub Desktop.
Caddy APT Repo
This file contains hidden or 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 | |
| sudo apt update | |
| sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl | |
| curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg | |
| curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list | |
| sudo apt update | |
| sudo apt install -y caddy |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bash oneliner:
curl -s https://gist.githubusercontent.com/abdulwaheedsyed/ab58432be9ee2efb13c68bb0cf5be540/raw/caddy_apt_repo.sh | bash -