diff options
author | 2019-04-03 23:16:06 +0000 | |
---|---|---|
committer | 2019-04-03 23:16:15 +0000 | |
commit | a4aeefb08d2ed5fb10a94fe3df63910db7827d33 (patch) | |
tree | f8c9f5db3d13dc34eafc1680d3bc0eeeb007165f /certs/org.onap.dmaap-bc.crontab.sh | |
parent | e6de2cef6c35390335df07f868d2484adc3949c3 (diff) |
Add client cert PEM files for authenticated requests
Note also relocated AAF cert artifacts since they are used by
both docker images created in this repo.
Change-Id: I539c0062ab9bc573e610bc7669d78e9528e2aace
Signed-off-by: dglFromAtt <dgl@research.att.com>
Issue-ID: DMAAP-1142
Diffstat (limited to 'certs/org.onap.dmaap-bc.crontab.sh')
-rw-r--r-- | certs/org.onap.dmaap-bc.crontab.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/certs/org.onap.dmaap-bc.crontab.sh b/certs/org.onap.dmaap-bc.crontab.sh new file mode 100644 index 0000000..861223c --- /dev/null +++ b/certs/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-22T17:37:39.745Z +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 |