From 7d683b200d453610b4e21647b8cafdb087c96398 Mon Sep 17 00:00:00 2001 From: dglFromAtt Date: Fri, 22 Mar 2019 12:39:51 -0400 Subject: New SSL cert till March 2020 These are the manually generated artifacts from AAF. Change-Id: Iada4daedeecea6c08e943064733541308d9f1227 Signed-off-by: dglFromAtt Issue-ID: DMAAP-1123 Signed-off-by: dglFromAtt --- dmaap-bc/misc/org.onap.dmaap-bc.crontab.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 dmaap-bc/misc/org.onap.dmaap-bc.crontab.sh (limited to 'dmaap-bc/misc/org.onap.dmaap-bc.crontab.sh') diff --git a/dmaap-bc/misc/org.onap.dmaap-bc.crontab.sh b/dmaap-bc/misc/org.onap.dmaap-bc.crontab.sh new file mode 100644 index 0000000..e8a8647 --- /dev/null +++ b/dmaap-bc/misc/org.onap.dmaap-bc.crontab.sh @@ -0,0 +1,15 @@ +#!/bin/bash /opt/app/osaaf/local/org.onap.dmaap-bc.crontab.sh +# Certificate Manager Crontab Loading Script +# Add/Update a Crontab entry, that adds a check on Certificate Manager generated Certificate nightly. +# Generated by Certificate Manager 2019-03-22T15:53:47.001Z +TFILE="/tmp/cmcron$$.temp" +DIR="/opt/app/osaaf/local" +CF="org.onap.dmaap-bc Certificate Check Script" +SCRIPT="/opt/app/osaaf/local/org.onap.dmaap-bc.check.sh" +crontab -l | sed -n "/#### BEGIN $CF/,/END $CF ####/!p" > $TFILE +# Note: Randomize Minutes (0-60) and hours (1-4) +echo "#### BEGIN $CF ####" >> $TFILE +echo "$(( $RANDOM % 60)) $(( $(( $RANDOM % 3 )) + 1 )) * * * /bin/bash $SCRIPT >> $DIR/cronlog 2>&1 " >> $TFILE +echo "#### END $CF ####" >> $TFILE +crontab $TFILE +rm $TFILE -- cgit 1.2.3-korg