From f1ef008fccbcaad09da7fadc855f646ce73ef737 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 11 May 2024 19:22:24 -0400 Subject: [PATCH] Create caddy-install.sh --- install/caddy-install.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 install/caddy-install.sh diff --git a/install/caddy-install.sh b/install/caddy-install.sh new file mode 100644 index 00000000..88fb8b1a --- /dev/null +++ b/install/caddy-install.sh @@ -0,0 +1,33 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2024 tteck +# Author: tteck (tteckster) +# License: MIT +# https://github.com/tteck/Proxmox/raw/main/LICENSE + +source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +$STD apt-get install -y {debian-keyring,debian-archive-keyring,apt-transport-https,gpg,curl,sudo,mc} +msg_ok "Installed Dependencies" + +msg_info "Installing Caddy" +curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg +curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' >/etc/apt/sources.list.d/caddy-stable.list +$STD apt-get update +$STD apt-get install -y caddy +msg_ok "Installed Caddy" + +motd_ssh +customize + +msg_info "Cleaning up" +$STD apt-get -y autoremove +$STD apt-get -y autoclean +msg_ok "Cleaned"