Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorUkhanov Anton <a.ukhanov@corp.mail.ru>2019-04-26 12:25:46 +0300
committerUkhanov Anton <a.ukhanov@corp.mail.ru>2019-04-26 12:25:46 +0300
commit95b3528308762676393dd10d3df7b48788f7f28a (patch)
tree46feace011d97b3c95b7752ae336858c542560bf /tools
parente9773d61b41928292687a52b0dbd4e65f62aa00d (diff)
added 3-month error in check mode
Diffstat (limited to 'tools')
-rw-r--r--tools/unix/check_cert.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/unix/check_cert.sh b/tools/unix/check_cert.sh
index 0d8a12e964..456660c8e7 100644
--- a/tools/unix/check_cert.sh
+++ b/tools/unix/check_cert.sh
@@ -42,8 +42,13 @@ else
cert_end_timestamp=`LANG=C LC_ALL=C date --date "$mon $day $year $time $tz" +%s`
fi
if [[ "$MODE" == "check" ]]; then
- if [[ "$warning_timestamp" -gt "$cert_end_timestamp" ]]; then
- echo "Our client certificate end date of $mon $day $time $year $tz is within ${MONTHS_BEFORE_EXPIRATION_TO_BREAK} month {DAYS_WARNING_INTERVAL} days from now."
+ if [[ "$threshold_timestamp" -gt "$cert_end_timestamp" ]]; then
+ echo "Our client certificate end date of $mon $day $time $year $tz is within $MONTHS_BEFORE_EXPIRATION_TO_BREAK months from now."
+ echo "Update this certificate immediately!"
+ echo "Error"
+ exit 1
+ elif [[ "$warning_timestamp" -gt "$cert_end_timestamp" ]]; then
+ echo "Our client certificate end date of $mon $day $time $year $tz is within ${MONTHS_BEFORE_EXPIRATION_TO_BREAK} month ${DAYS_WARNING_INTERVAL} days from now."
echo "Update this certificate!"
echo "Warning"
exit 1