/scripts/alcasar-CA.sh |
---|
169,18 → 169,11 |
# thus, hostname must be 36 chars or less. If it's too big, |
# try removing domain (merci REXY ;-) ). |
hostname_len=`echo $hostname| wc -c` |
if [ $hostname_len -gt 36 ]; |
then |
hostname=`echo $hostname | cut -d '.' -f 1` |
fi |
if [ ! -f /etc/sysconfig/network-scripts/ifcfg-eth1 ] |
then |
echo "Impossible de déterminer l'@-IP" |
exit 1 |
fi |
IPADDR=`cat /etc/sysconfig/network-scripts/ifcfg-eth1 |grep IPADDR|cut -d"=" -f2` |
CAMAIL=ca@$hostname |
SRVMAIL=apache@$hostname |