Philippe Caseiro
4365b7974a
Ubuntu don't build redis with SSL support so we use Stunnel to fill the gap. Here we add Stunnel full EOLE integration and Redis specifics. Maybe later we will want to have a specific package for eole-stunnel. ref #30338
31 lines
930 B
Bash
31 lines
930 B
Bash
#!/bin/bash
|
|
|
|
if [ $(CreoleGet activer_redis) = "oui" ];then
|
|
. /usr/lib/eole/diagnose.sh
|
|
|
|
EchoGras "*** Service Redis"
|
|
nbIface=$(CreoleGet nombre_interfaces)
|
|
ssl=$(CreoleGet redisSSL non)
|
|
if [ ${nbIface} -eq 1 ]
|
|
then
|
|
TestService "Redis master iface 0" $(CreoleGet "adresse_ip_eth0"):$(CreoleGet "redisPort")
|
|
if [ ${ssl} = "oui" ]
|
|
then
|
|
TestService "Redis master SSL iface 0" $(CreoleGet "adresse_ip_eth0"):$(CreoleGet "redisSSLPort")
|
|
fi
|
|
echo
|
|
else
|
|
for iface in $(seq 0 ${nbIface})
|
|
do
|
|
TestService "Redis master iface ${iface}" $(CreoleGet "adresse_ip_eth${iface}"):$(CreoleGet "redisPort")
|
|
if [ ${ssl} = "oui" ]
|
|
then
|
|
TestService "Redis master SSL iface ${iface}" $(CreoleGet "adresse_ip_eth0"):$(CreoleGet "redisSSLPort")
|
|
fi
|
|
echo
|
|
done
|
|
fi
|
|
fi
|
|
|
|
exit 0
|