222,14 → 222,14 |
|
# Link certs in ALCASAR Control Center |
if [ -s "$CACERT" -a -s "$CAKEY" -a -s "$SRVCERT" -a -s "$SRVKEY" ]; |
then |
[ -d $DIR_WEB/certs ] || mkdir -p $DIR_WEB/certs |
rm -f $DIR_WEB/certs/* |
ln -s $CACERT $DIR_WEB/certs/certificat_alcasar_ca.der |
ln -s $SRVCERT $DIR_WEB/certs/certificat_alcasar.crt |
rm -rf $DIR_TMP |
exit 0 |
then |
[ -d $DIR_WEB/certs ] || mkdir -p $DIR_WEB/certs |
rm -f $DIR_WEB/certs/* |
ln -s $CACERT $DIR_WEB/certs/certificat_alcasar_ca.crt |
ln -s $SRVCERT $DIR_WEB/certs/certificat_alcasar.crt |
rm -rf $DIR_TMP |
exit 0 |
else |
echo "Problème lors de la création des certificats (cf. $DIR_TMP/openssl-log)" >> $FIC_PARAM |
exit 1 |
echo "Problème lors de la création des certificats (cf. $DIR_TMP/openssl-log)" >> $FIC_PARAM |
exit 1 |
fi |