Browse Source

Configure hosts entry as well

master
Luke Murphy 5 years ago
parent
commit
25cc9cc281
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 9
      bibliotecha.sh

9
bibliotecha.sh

@ -243,6 +243,14 @@ function configure_hostapd {
/etc/default/hostapd
}
function configure_etc_hosts {
echo "Configuring /etc/hosts entry ..."
if ! grep -q "bibliotecha.library" /etc/hosts; then
echo '10.0.0.1 bibliotecha.library' >> /etc/hosts
fi
}
function enable_networking_services {
echo "Enabling network services ..."
@ -403,6 +411,7 @@ function run_installation {
configure_network_interfaces
configure_dnsmasq
configure_hostapd
configure_etc_hosts
enable_networking_services
install_webserver

Loading…
Cancel
Save