From d9b58a197e1498a4aa97a77298ec844e5059dcd8 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Wed, 5 Oct 2022 22:46:18 +0200 Subject: [PATCH] Scripts: Add install-caddy.sh Signed-off-by: Michael Mayer --- scripts/dist/install-caddy.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 scripts/dist/install-caddy.sh diff --git a/scripts/dist/install-caddy.sh b/scripts/dist/install-caddy.sh new file mode 100755 index 000000000..c5e4bac53 --- /dev/null +++ b/scripts/dist/install-caddy.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +# Installs Caddy on Linux +# bash <(curl -s https://raw.githubusercontent.com/photoprism/photoprism/develop/scripts/dist/install-caddy.sh) + +set -e + +echo "Installing Caddy..." + +sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https +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 caddy + +echo "Done."