~libravatar/libravatar/master

« back to all changes in this revision

Viewing changes to debian/libravatar-update-certs

  • Committer: Francois Marier
  • Date: 2013-12-25 09:30:44 UTC
  • Revision ID: git-v1:50723b15fed2784ab26e57e334e6b925b76ff444
Fix the initial cert installation for new mirrors

When a new mirror comes online, it has empty certs in /etc/libravatar/ and
so this check was wrong because it was never installing the certs coming from
the master.

http://wiki.libravatar.org/how_to_add_a_mirror_slave_to_the_mirror_master/

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
SLAVE_KEY=/var/lib/libravatar/slave/cert/seccdn.pem
8
8
SLAVE_CHAIN=/var/lib/libravatar/slave/cert/seccdn-chain.pem
9
9
 
10
 
if [ ! -e $SLAVE_CERT -o ! -s $APACHE_CERT ] ; then
 
10
if [ ! -e $SLAVE_CERT -o ! -e $APACHE_CERT ] ; then
11
11
        echo "libravatar-slave: SSL certificate is missing"
12
12
        exit 1
13
13
fi
14
14
 
15
 
if [ ! -e $SLAVE_KEY -o ! -s $APACHE_KEY ] ; then
 
15
if [ ! -e $SLAVE_KEY -o ! -e $APACHE_KEY ] ; then
16
16
        echo "libravatar-slave: SSL certificate key is missing"
17
17
        exit 2
18
18
fi
19
19
 
20
 
if [ ! -e $SLAVE_CHAIN -o ! -s $APACHE_CHAIN ] ; then
 
20
if [ ! -e $SLAVE_CHAIN -o ! -e $APACHE_CHAIN ] ; then
21
21
        echo "libravatar-slave: SSL certificate chain is missing"
22
22
        exit 3
23
23
fi