home · contact · privacy
Fix.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 14 Apr 2025 04:54:13 +0000 (06:54 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 14 Apr 2025 04:54:13 +0000 (06:54 +0200)
bookworm/aptmark/caddy [new file with mode: 0644]
bookworm/scripts/setup_catgirl.sh

diff --git a/bookworm/aptmark/caddy b/bookworm/aptmark/caddy
new file mode 100644 (file)
index 0000000..aeb9382
--- /dev/null
@@ -0,0 +1,2 @@
+caddy
+#
index b21178801bbd4feb9bf4920eb2684a5e697a3dfe..7ef9332284c7ad695d50ccf7f22d23877fe5b2ed 100755 (executable)
@@ -23,6 +23,11 @@ PATH_ETC="/${PATH_REL_ETC}"
 PATH_HOSTS="${PATH_ETC}/hosts"
 PATH_BORG_HOME=/home/borg
 
+echo '\nPreparing caddy install.'
+apt -y install curl
+curl -1Lf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
+curl -1Lf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list
+
 init_packages "${MIN_TAGS}"
 
 echo '\nSetting hostname and FQDN.'
@@ -54,14 +59,11 @@ echo '\nEnabling the firewall.'
 systemctl enable nftables.service
 systemctl start nftables.service
 
-echo '\nSetting up catgirl.'
-sed -i "s/REPLACE_WITH_SASL_PASSWORD/${SASL_PASSWORD}/g" "${PATH_USER_HOME}/.config/catgirl/libera"
-systemctl enable catgirl.service
-systemctl start catgirl.service
+echo '\nSetting up catgirl.'
+sed -i "s/REPLACE_WITH_SASL_PASSWORD/${SASL_PASSWORD}/g" "${PATH_USER_HOME}/.config/catgirl/libera"
+systemctl enable catgirl.service
+systemctl start catgirl.service
 
-echo '\nSetting up caddy.'
-apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
-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' | tee /etc/apt/sources.list.d/caddy-stable.list
-apt update
-apt install caddy
+# Reload caddy config.
+caddy stop
+caddy start