From 6c360f4d433899f8e95b889d40ef4db0090b9f60 Mon Sep 17 00:00:00 2001 From: kx1t Date: Tue, 13 Feb 2024 15:05:16 -0500 Subject: [PATCH] logging improvement --- rootfs/etc/s6-overlay/scripts/10-ssl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/etc/s6-overlay/scripts/10-ssl b/rootfs/etc/s6-overlay/scripts/10-ssl index 8a7527b..d7e0a56 100755 --- a/rootfs/etc/s6-overlay/scripts/10-ssl +++ b/rootfs/etc/s6-overlay/scripts/10-ssl @@ -27,8 +27,8 @@ then [[ -z "$lastforced" ]] && lastforced=0 || true (( mustforce - lastforced > 0 )) && forceinstall="true" || true date +%s > /run/nginx/.letsencrypt/.force-reinstall.lastforced - "${s6wrap[@]}" echo "Checking if SSL certificates must be reinstalled: Must reinstall if last install was before $(date -d "@$mustforce"). Last reinstall was at $(date -d "@$lastforced"). Will " - [[ "$forceinstall" == "true" ]] && "${s6wrap[@]}" echo "reinstall certificates." || "${s6wrap[@]}" echo "not reinstall certificates." + "${s6wrap[@]}" echo "Checking if SSL certificates must be reinstalled: Must reinstall if last install was before $(date -d "@$mustforce")." + "${s6wrap[@]}" echo "Last reinstall was at $(date -d "@$lastforced"). Will $(if [[ "$forceinstall" != "true" ]]; then printf "not "; fi)reinstall certificates." fi # if there is a backup and $forceinstall is not true, restore it