photoprism/scripts/dist/install-caddy.sh
Michael Mayer f91499fb05 CI: Change gpg keyring path in install scripts
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-01 13:01:32 +01:00

17 lines
597 B
Bash
Executable file

#!/usr/bin/env bash
# This installs the Caddy web server 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 /etc/apt/trusted.gpg.d/caddy.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."