diff --git a/scripts/setup_wizard.sh b/scripts/setup_wizard.sh index a0f488d..d2fe3de 100755 --- a/scripts/setup_wizard.sh +++ b/scripts/setup_wizard.sh @@ -171,8 +171,8 @@ if [ ! -f "$CERT_LOCATION" ] || [ ! -f "$KEY_LOCATION" ]; then --provisioner admin fi -printf "\n\nCert information:" -echo "-----------------------------" +echo "" >&2 +echo -e "${GREEN}=== Cert information ===${NC}" >&2 openssl x509 -noout -subject -issuer -ext extendedKeyUsage -ext subjectAltName -enddate -in "$CERT_LOCATION" SERVICE_FILE="cert-renewer.service" @@ -181,13 +181,13 @@ REPO_URL_BASE=https://gitea.john-stream.com/john/soteria/raw/branch/main/ SERVICE_TEMPLATE_URL="${REPO_URL_BASE}systemd/${SERVICE_FILE}" TIMER_TEMPLATE_URL="${REPO_URL_BASE}systemd/${TIMER_FILE}" -printf "\n\nInstalling rotation services" -echo "-----------------------------" +echo "" >&2 +echo -e "${GREEN}=== Installing rotation services ===${NC}" >&2 install_unit ${SERVICE_TEMPLATE_URL} install_unit ${TIMER_TEMPLATE_URL} -printf "\n\nReloading services" -echo "-----------------------------" +echo "" >&2 +echo -e "${GREEN}=== Reloading services ===${NC}" >&2 systemctl daemon-reload systemctl enable --now "${TIMER_FILE}" "${SERVICE_FILE}" systemctl list-unit-files $SERVICE_FILE $TIMER_FILE