Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1743 → Rev 1744

/scripts/alcasar-importcert.sh
53,7 → 53,7
function domainName() # change the domain name in the conf files
{
 
fqdn=$(openssl x509 -noout -subject -in $cert | sed -n '/^subject/s/^.*CN=//p')
fqdn=$(openssl x509 -noout -subject -in $cert | sed -n '/^subject/s/^.*CN=//p' | cut -d'/' -f 1)
hostname=`echo $fqdn | awk -F'.' '{ print $1 }'`
domain=`echo $fqdn | awk -F'.' '{$1="";OFS=".";print $0}' |sed 's/^.//'`
echo "fqdn=$fqdn hostname=$hostname domain=$domain"