mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-24 07:03:43 +00:00
Add configuration of interface during installation
Facilite installation when multiple interfaces (wifi for example)
This commit is contained in:
parent
3290dbbe48
commit
e0d99a293b
1 changed files with 6 additions and 0 deletions
|
@ -71,6 +71,12 @@ sudo lighty-enable-mod fastcgi fastcgi-php
|
|||
sudo mkdir /var/www/html/pihole
|
||||
sudo curl -o /var/www/html/pihole/index.html "https://raw.githubusercontent.com/jacobsalmela/pi-hole/master/advanced/index.html"
|
||||
|
||||
echo "Configuration of interface..."
|
||||
echo "Which interface do you want to use ? (default eth0)"
|
||||
read interface
|
||||
interface=${interface:-eth0}
|
||||
sudo sed -i -e "s/interface=eth0/interface=$interface/g" /etc/dnsmasq.conf
|
||||
|
||||
echo "Installing the Web interface..."
|
||||
sudo wget https://github.com/jacobsalmela/AdminLTE/archive/master.zip -O /var/www/master.zip
|
||||
sudo unzip /var/www/master.zip -d /var/www/html/
|
||||
|
|
Loading…
Reference in a new issue