Skip to content

Commit 22f9b75

Browse files
committed
Improved run notification
1 parent 177fd84 commit 22f9b75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ run_certbot
5252

5353
# Infinite loop to keep the container running and periodically check for renewals
5454
while true; do
55-
echo "Next certificate renewal check will be in ${RENEWAL_INTERVAL} seconds"
55+
next_run=$(date -d "@$(($(date +%s) + RENEWAL_INTERVAL))" '+%Y-%m-%d %H:%M:%S')
56+
echo "Next certificate renewal check will be at ${next_run}"
5657
sleep "$RENEWAL_INTERVAL"
5758
if ! run_certbot; then
5859
echo "Error: Certificate renewal failed. Exiting."

0 commit comments

Comments
 (0)