29,11 → 29,15 |
{ |
$SED "s/^HOSTNAME=.*/HOSTNAME=alcasar/g" /usr/local/etc/alcasar.conf |
$SED "s/^DOMAIN=.*/DOMAIN=localdomain/g" /usr/local/etc/alcasar.conf |
$SED "s/\.([a-zA-Z][a-zA-Z0-9-]+(\.[a-z]{2,4})?)/.localdomain/g" /etc/hosts |
$SED "s/alcasar\.([a-zA-Z0-9-]+(\.[a-z]{2,4})?)/alcasar.localdomain/g" /etc/chilli.conf |
$SED "s/^domain.*/domain\t\tlocaldomain/g" /etc/chilli.conf |
cat <<EOF > /etc/hosts |
127.0.0.1 localhost |
$PRIVATE_IP alcasar alcasar.localdomain |
EOF |
$SED "s/^locationname.*/locationname\talcasar.localdomain/g" /etc/chilli.conf |
$SED "s/^uamserver.*/uamserver\thttps:\/\/alcasar.localdomain\/intercept.php/g" /etc/chilli.conf |
$SED "s/^radiusnasid.*/radiusnasid\talcasar.localdomain/g" /etc/chilli.conf |
$SED "s/^uamallowed.*/uamallowed\talcasar,alcasar.localdomain/g" /etc/chilli.conf |
$SED "s/^ServerName.*/ServerName alcasar.localdomain/g" /etc/httpd/conf/httpd.conf |
$SED "s/^domain=.*/domain=localdomain/g" /etc/dnsmasq.conf |
hostnamectl set-hostname alcasar.localdomain |
$SED "s/^\tErrorDocument.*/\tErrorDocument 404 https:\/\/alcasar.localdomain\//g" /etc/httpd/conf/webapps.d/alcasar.conf |
$SED "s/^\tAuthDigestDomain.*/\tAuthDigestDomain alcasar.localdomain/g" /etc/httpd/conf/webapps.d/alcasar.conf |
74,7 → 78,7 |
$SED "s/^DOMAIN=.*/DOMAIN=$domain/g" /usr/local/etc/alcasar.conf |
cat <<EOF > /etc/hosts |
127.0.0.1 localhost |
$PRIVATE_IP $fqdn $hostname |
$PRIVATE_IP $hostname $hostname.localdomain $fqdn |
EOF |
$SED "s/^locationname.*/locationname\t$fqdn/g" /etc/chilli.conf |
$SED "s/^uamserver.*/uamserver\thttps:\/\/$fqdn\/intercept.php/g" /etc/chilli.conf |