Skip to content

Commit

Permalink
logging improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t committed Feb 13, 2024
1 parent 93fa43f commit 6c360f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rootfs/etc/s6-overlay/scripts/10-ssl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6c360f4

Please sign in to comment.