/scripts/alcasar-conf.sh |
---|
336,10 → 336,9 |
# Set hostname |
hostnamectl set-hostname $HOSTNAME.$DOMAIN |
# /etc/hosts |
cat <<EOF > /etc/hosts |
127.0.0.1 localhost |
$PRIVATE_IP $HOSTNAME |
EOF |
$SED "/^$PRIVATE_IP\t/d" /etc/hosts |
$SED "/$HOSTNAME$/d" /etc/hosts |
echo "$PRIVATE_IP $HOSTNAME" >> /etc/hosts |
# Lighttpd |
$SED "s?^server\.bind.*?server\.bind = \"$HOSTNAME.$DOMAIN\"?g" /etc/lighttpd/lighttpd.conf |
$SED 's/^$SERVER\["socket"\] == ".*:443.*/$SERVER\["socket"\] == "'"$HOSTNAME.$DOMAIN"':443" {/g' /etc/lighttpd/vhosts.d/alcasar.conf |