SSL certificate expiration check has been added to the daily maintenance.

This commit is contained in:
2026-02-16 20:20:19 +01:00
parent 3963be4ce5
commit 3827481a0a
4 changed files with 1065 additions and 3 deletions

View File

@@ -10,8 +10,10 @@
# Author: Kovács Zoltán <kovacs.zoltan@smartfront.hu>
# Kovács Zoltán <kovacsz@marcusconsulting.hu>
# License: GNU/GPL v3+ (https://www.gnu.org/licenses/gpl-3.0.en.html)
# 2026-02-16 v1.1
# new: It now also calls the SSL web certificate expiration checker utility.
# 2023-06-18 v1.0
# new: forked from the "Smartfront's DOCKER_skeleton" repository.
# new: Forked from the "Smartfront's DOCKER_skeleton" repository.
# 2021-09-14 v0.2
# add: Checks the SSL web certificate (if any), renews it if necessary.
# 2021-09-01 v0.1 Initial release
@@ -24,7 +26,7 @@
# Where I'm?
SCRPATH="$( cd -P "$( "$(which dirname)" "$0" )" && echo "$PWD" )"
# Checks the SSL web certificate, renews it if necessery.
# Checks the ACME-handled SSL web certificates, renews them if necessery.
#
# Uses the acme wrapper script located in the same directory.
ACME="$SCRPATH/acme"
@@ -32,7 +34,17 @@ ACMELOG="$($(which dirname) "$SCRPATH")/logs/web/acme.log"
if [ -n "$ACME" -a -x "$ACME" ]; then
"$ACME" --cron >> "$ACMELOG" 2>&1
fi
# Done with the certificate.
# Done with the ACME certificates.
# Checks all SSL web certificates (ACME-handled or not) for expiration.
# Checks the expiration of all certificates (including ACME-handled
# and non-handled ones).
#
CHECKCERT="$SCRPATH/check_certificates"
if [ -n "$CHECKCERT" -a -x "$CHECKCERT" ]; then
"$CHECKCERT"
fi
# Done with certificates.
# Daily backup operations.
#