mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-03 04:30:55 +00:00
Move creation of pihole directory out of IPv6 function
This commit is contained in:
parent
8b18fdd322
commit
ea0fb15ff2
@ -172,7 +172,6 @@ useIPv6dialog()
|
|||||||
{
|
{
|
||||||
piholeIPv6=$(ip -6 route get 2001:4860:4860::8888 | awk -F " " '{ for(i=1;i<=NF;i++) if ($i == "src") print $(i+1) }')
|
piholeIPv6=$(ip -6 route get 2001:4860:4860::8888 | awk -F " " '{ for(i=1;i<=NF;i++) if ($i == "src") print $(i+1) }')
|
||||||
whiptail --msgbox --backtitle "IPv6..." --title "IPv6 Supported" "$piholeIPv6 will be used to block ads." $r $c
|
whiptail --msgbox --backtitle "IPv6..." --title "IPv6 Supported" "$piholeIPv6 will be used to block ads." $r $c
|
||||||
$SUDO mkdir -p /etc/pihole/
|
|
||||||
$SUDO touch /etc/pihole/.useIPv6
|
$SUDO touch /etc/pihole/.useIPv6
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -373,6 +372,7 @@ installPihole()
|
|||||||
{
|
{
|
||||||
installDependencies
|
installDependencies
|
||||||
stopServices
|
stopServices
|
||||||
|
$SUDO mkdir -p /etc/pihole/
|
||||||
$SUDO chown www-data:www-data /var/www/html
|
$SUDO chown www-data:www-data /var/www/html
|
||||||
$SUDO chmod 775 /var/www/html
|
$SUDO chmod 775 /var/www/html
|
||||||
$SUDO usermod -a -G www-data pi
|
$SUDO usermod -a -G www-data pi
|
||||||
@ -420,4 +420,4 @@ $SUDO mv $tmpLog $instalLogLoc
|
|||||||
displayFinalMessage
|
displayFinalMessage
|
||||||
|
|
||||||
$SUDO service dnsmasq start
|
$SUDO service dnsmasq start
|
||||||
$SUDO service lighttpd start
|
$SUDO service lighttpd start
|
||||||
|
Loading…
Reference in New Issue
Block a user