listing unit files at the end
This commit is contained in:
@@ -164,9 +164,11 @@ if [ ! -f "$CERT_LOCATION" ] || [ ! -f "$KEY_LOCATION" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# 3. Configure
|
# 3. Configure
|
||||||
|
SERVICE_FILE="cert-renewer.service"
|
||||||
|
TIMER_FILE="cert-renewer.timer"
|
||||||
REPO_URL_BASE=https://gitea.john-stream.com/john/soteria/raw/branch/main/
|
REPO_URL_BASE=https://gitea.john-stream.com/john/soteria/raw/branch/main/
|
||||||
SERVICE_TEMPLATE_URL="${REPO_URL_BASE}systemd/cert-renewer.service"
|
SERVICE_TEMPLATE_URL="${REPO_URL_BASE}systemd/${SERVICE_FILE}"
|
||||||
TIMER_TEMPLATE_URL="${REPO_URL_BASE}systemd/cert-renewer.timer"
|
TIMER_TEMPLATE_URL="${REPO_URL_BASE}systemd/${TIMER_FILE}"
|
||||||
|
|
||||||
# 3. Execute
|
# 3. Execute
|
||||||
# echo "Configuring $HOST_NAME..."
|
# echo "Configuring $HOST_NAME..."
|
||||||
@@ -175,6 +177,4 @@ install_unit ${TIMER_TEMPLATE_URL}
|
|||||||
|
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable --now "$(basename "${TIMER_TEMPLATE_URL}")"
|
systemctl enable --now "$(basename "${TIMER_TEMPLATE_URL}")"
|
||||||
|
systemctl list-unit-files $SERVICE_FILE $TIMER_FILE
|
||||||
systemctl status "$(basename "${SERVICE_TEMPLATE_URL}")" --no-pager
|
|
||||||
systemctl status "$(basename "${TIMER_TEMPLATE_URL}")" --no-pager
|
|
||||||
|
|||||||
Reference in New Issue
Block a user