1
0
mirror of https://github.com/moparisthebest/pi-hole synced 2024-08-13 16:53:51 -04:00

/var/www/html instead of /var/www

lighttpd in Jessie uses /var/www/html for the root folder, so in order
to only edit one lightpd.conf file, the installer will create the
correct directory even if not being run on Jessie.
This commit is contained in:
Jacob Salmela 2015-10-27 16:19:01 -05:00
parent 6d0c67af9a
commit bc3ece778d

View File

@ -52,8 +52,9 @@ sudo update-rc.d dnsmasq enable
echo "Installing a Web server" echo "Installing a Web server"
sudo apt-get -y install lighttpd php5-common php5-cgi php5 sudo apt-get -y install lighttpd php5-common php5-cgi php5
sudo chown www-data:www-data /var/www sudo mkdir /var/www/html
sudo chmod 775 /var/www sudo chown www-data:www-data /var/www/html
sudo chmod 775 /var/www/html
sudo usermod -a -G www-data pi sudo usermod -a -G www-data pi
echo "Stopping services to modify them..." echo "Stopping services to modify them..."
@ -67,8 +68,8 @@ sudo mv /var/www/index.lighttpd.html /var/www/index.lighttpd.orig
sudo curl -o /etc/dnsmasq.conf "https://raw.githubusercontent.com/jacobsalmela/pi-hole/master/advanced/dnsmasq.conf" sudo curl -o /etc/dnsmasq.conf "https://raw.githubusercontent.com/jacobsalmela/pi-hole/master/advanced/dnsmasq.conf"
sudo curl -o /etc/lighttpd/lighttpd.conf "https://raw.githubusercontent.com/jacobsalmela/pi-hole/master/advanced/lighttpd.conf" sudo curl -o /etc/lighttpd/lighttpd.conf "https://raw.githubusercontent.com/jacobsalmela/pi-hole/master/advanced/lighttpd.conf"
sudo lighty-enable-mod fastcgi fastcgi-php sudo lighty-enable-mod fastcgi fastcgi-php
sudo mkdir /var/www/pihole sudo mkdir /var/www/html/pihole
sudo curl -o /var/www/pihole/index.html "https://raw.githubusercontent.com/jacobsalmela/pi-hole/master/advanced/index.html" sudo curl -o /var/www/html/pihole/index.html "https://raw.githubusercontent.com/jacobsalmela/pi-hole/master/advanced/index.html"
echo "Locating the Pi-hole..." echo "Locating the Pi-hole..."
sudo curl -o /usr/local/bin/gravity.sh "https://raw.githubusercontent.com/jacobsalmela/pi-hole/master/gravity.sh" sudo curl -o /usr/local/bin/gravity.sh "https://raw.githubusercontent.com/jacobsalmela/pi-hole/master/gravity.sh"