Skip to content

Instantly share code, notes, and snippets.

@abdulwaheedsyed
Last active March 14, 2024 07:55
Show Gist options
  • Select an option

  • Save abdulwaheedsyed/ab58432be9ee2efb13c68bb0cf5be540 to your computer and use it in GitHub Desktop.

Select an option

Save abdulwaheedsyed/ab58432be9ee2efb13c68bb0cf5be540 to your computer and use it in GitHub Desktop.
Caddy APT Repo
#!/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
@abdulwaheedsyed
Copy link
Copy Markdown
Author

abdulwaheedsyed commented Mar 14, 2024

Bash oneliner:
curl -s https://gist.githubusercontent.com/abdulwaheedsyed/ab58432be9ee2efb13c68bb0cf5be540/raw/caddy_apt_repo.sh | bash -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment