Try and make this not send emails most of the time.
This commit is contained in:
parent
bcd2f6a3f8
commit
16564bfeb7
1 changed files with 1 additions and 2 deletions
|
@ -4,7 +4,7 @@ URL=https://admin.fedoraproject.org/ca/crl.pem
|
||||||
OLD=/etc/pki/tls/crl.pem
|
OLD=/etc/pki/tls/crl.pem
|
||||||
NEW=/tmp/crl.pem
|
NEW=/tmp/crl.pem
|
||||||
|
|
||||||
wget $URL -O $NEW
|
wget -q $URL -O $NEW
|
||||||
OLDUPDATE=`openssl crl -in $OLD -noout -lastupdate`
|
OLDUPDATE=`openssl crl -in $OLD -noout -lastupdate`
|
||||||
NEWUPDATE=`openssl crl -in $NEW -noout -lastupdate`
|
NEWUPDATE=`openssl crl -in $NEW -noout -lastupdate`
|
||||||
|
|
||||||
|
@ -12,5 +12,4 @@ if [ "$OLDUPDATE" != "$NEWUPDATE" ]; then
|
||||||
mv $NEW $OLD
|
mv $NEW $OLD
|
||||||
restorecon $OLD
|
restorecon $OLD
|
||||||
/etc/init.d/httpd graceful
|
/etc/init.d/httpd graceful
|
||||||
echo "updated to $NEWUPDATE"
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue