Skip to content

Commit

Permalink
Update entrypoint.sh to include timezone in next renewal check output
Browse files Browse the repository at this point in the history
- Modified date formatting in the next_run variable to include timezone information, enhancing clarity for scheduled certificate renewal checks.
- Maintained existing functionality while improving the output format for better usability.
  • Loading branch information
jaydrogers committed Jan 8, 2025
1 parent c6aeaee commit 8b08577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ while true; do
# POSIX-compliant way to show next run time
current_timestamp=$(date +%s)
next_timestamp=$((current_timestamp + RENEWAL_INTERVAL))
next_run=$(date -r "$next_timestamp" '+%Y-%m-%d %H:%M:%S' 2>/dev/null || date '+%Y-%m-%d %H:%M:%S')
next_run=$(date -r "$next_timestamp" '+%Y-%m-%d %H:%M:%S %z' 2>/dev/null || date '+%Y-%m-%d %H:%M:%S %z')
echo "Next certificate renewal check will be at ${next_run}"

# Store PID of sleep process and wait for it
Expand Down

0 comments on commit 8b08577

Please sign in to comment.