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.'
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