Mover {SUDO} mkdir -p /etc/pihole/ back to the beginning.

This commit is contained in:
Promofaux 2016-10-02 12:44:33 +01:00
parent aca5064743
commit c281b47905

View file

@ -804,7 +804,6 @@ installPihole() {
checkForDependencies # done checkForDependencies # done
stopServices stopServices
setUser setUser
${SUDO} mkdir -p /etc/pihole/
if [ ! -d "/var/www/html" ]; then if [ ! -d "/var/www/html" ]; then
${SUDO} mkdir -p /var/www/html ${SUDO} mkdir -p /var/www/html
fi fi
@ -939,7 +938,7 @@ installerDependencies
if [[ ${useUpdateVars} == false ]]; then if [[ ${useUpdateVars} == false ]]; then
welcomeDialogs welcomeDialogs
${SUDO} mkdir -p /etc/pihole/
# Find IP used to route to outside world # Find IP used to route to outside world
findIPRoute findIPRoute
# Find interfaces and let the user choose one # Find interfaces and let the user choose one