File: fetch-crl.cron

package info (click to toggle)
fetch-crl 2.8.5-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 160 kB
  • ctags: 15
  • sloc: sh: 914; makefile: 104
file content (27 lines) | stat: -rw-r--r-- 756 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
#
# @(#)$Id: fetch-crl.cron,v 1.5 2009/09/21 20:22:33 pmacvsdg Exp $
# 
# This cronscript provides an alternative mechanism to 
# periodically run fetch-crl on a system . Copy this script
# to /etc/cron.{hourly,daily}/ and make it executable to enable
# the periodic CRL retrieval.
#
# Note that you should enable ether the chkconfig or this method
# of CRL updating -- not both.

# Depending on the FETCH_CRL_SYSCONFIG setting, these may be read twice
if [ -f /etc/fetch-crl.cron ] ; then
. /etc/fetch-crl.cron
fi

CRLDIR=${CRLDIR:-/etc/grid-security/certificates} 

QUIET=${QUIET:-yes}

if [ $QUIET = "yes" ] ; then
  /usr/sbin/fetch-crl  --loc $CRLDIR --out $CRLDIR -a 24 --quiet
else
  /usr/sbin/fetch-crl  --loc $CRLDIR --out $CRLDIR 
fi