This commit is contained in:
John Lancaster
2025-12-30 00:38:57 -06:00
parent 80a59bb0a8
commit d834a543ee

View File

@@ -171,7 +171,7 @@ if [ ! -f "$CERT_LOCATION" ] || [ ! -f "$KEY_LOCATION" ]; then
--provisioner admin --provisioner admin
fi fi
echo "\n\nCert information:" printf "\n\nCert information:"
echo "-----------------------------" echo "-----------------------------"
openssl x509 -noout -subject -issuer -ext extendedKeyUsage -ext subjectAltName -enddate -in "$CERT_LOCATION" openssl x509 -noout -subject -issuer -ext extendedKeyUsage -ext subjectAltName -enddate -in "$CERT_LOCATION"
@@ -181,12 +181,12 @@ REPO_URL_BASE=https://gitea.john-stream.com/john/soteria/raw/branch/main/
SERVICE_TEMPLATE_URL="${REPO_URL_BASE}systemd/${SERVICE_FILE}" SERVICE_TEMPLATE_URL="${REPO_URL_BASE}systemd/${SERVICE_FILE}"
TIMER_TEMPLATE_URL="${REPO_URL_BASE}systemd/${TIMER_FILE}" TIMER_TEMPLATE_URL="${REPO_URL_BASE}systemd/${TIMER_FILE}"
echo "\n\nInstalling rotation services" printf "\n\nInstalling rotation services"
echo "-----------------------------" echo "-----------------------------"
install_unit ${SERVICE_TEMPLATE_URL} install_unit ${SERVICE_TEMPLATE_URL}
install_unit ${TIMER_TEMPLATE_URL} install_unit ${TIMER_TEMPLATE_URL}
echo "\n\nReloading services" printf "\n\nReloading services"
echo "-----------------------------" echo "-----------------------------"
systemctl daemon-reload systemctl daemon-reload
systemctl enable --now "${TIMER_FILE}" "${SERVICE_FILE}" systemctl enable --now "${TIMER_FILE}" "${SERVICE_FILE}"