Changeset 6021


Ignore:
Timestamp:
Oct 13, 2017, 11:08:11 AM (2 years ago)
Author:
daduve
Message:

Fix bug in test to need certificate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • epoptes/trunk/fuentes/epoptes-client/epoptes-client

    r5939 r6021  
    253253# Provide an easy way to fetch the server certificate
    254254echo "Necesito el certificado -> $need_certificate" >> $log_file
    255 #test -n "$need_certificate" && fetch_certificate
    256 BAJAR_CERT=True
    257 if [ $need_certificate  =  $BAJAR_CERT ];then
    258         echo "Compruebo si el certificado existe con valor != 0 ">> $log_file
    259          if [ ! -s /etc/epoptes/server.crt ]; then
    260                 echo "FORZADO -> No tengo el certificado debo adquirirlo del server" >> $log_file
    261                 fetch_certificate
    262         fi
    263 fi
     255test -n "$need_certificate" && fetch_certificate
     256
    264257
    265258# We don't want the epoptes-client system service running on the epoptes server
Note: See TracChangeset for help on using the changeset viewer.