I'm hoping this is an easy question for someone. I'm upgrading a pogoplug from V5 to V6 and of course ran into issues running "pihole -up". I think I now have everything working, but I'm wanting to check to make sure I didn't miss anything.
So, is there a list of where "anything pihole" is? So far, I know these files and locations:
That should be everything but to be completely sure you can check the installation script (you might have to change to a v5 branch for that version). Almost all of the paths are declared at the top as variables however there may be one or two hard coded paths.
# Location for final installation log storage
installLogLoc="/etc/pihole/install.log"
# This is an important file as it contains information specific to the machine it's being installed on
setupVars="/etc/pihole/setupVars.conf"
# Pi-hole uses lighttpd as a Web server, and this is the config file for it
lighttpdConfig="/etc/lighttpd/lighttpd.conf"
# This is a file used for the colorized output
coltable="/opt/pihole/COL_TABLE"
# Root of the web server
webroot="/var/www/html"
# We clone (or update) two git repositories during the install. This helps to make sure that we always have the latest versions of the relevant files.
# web is used to set up the Web admin interface.
# Pi-hole contains various setup scripts and files which are critical to the installation.
# Search for "PI_HOLE_LOCAL_REPO" in this file to see all such scripts.
# Two notable scripts are gravity.sh (used to generate the HOSTS file) and advanced/Scripts/webpage.sh (used to install the Web admin interface)
webInterfaceGitUrl="https://github.com/pi-hole/web.git"
webInterfaceDir="${webroot}/admin"
piholeGitUrl="https://github.com/pi-hole/pi-hole.git"
PI_HOLE_LOCAL_REPO="/etc/.pihole"
# List of pihole scripts, stored in an array
PI_HOLE_FILES=(chronometer list piholeDebug piholeLogFlush setupLCD update version gravity uninstall webpage)
# This directory is where the Pi-hole scripts will be installed
PI_HOLE_INSTALL_DIR="/opt/pihole"
PI_HOLE_CONFIG_DIR="/etc/pihole"
PI_HOLE_BIN_DIR="/usr/local/bin"
FTL_CONFIG_FILE="${PI_HOLE_CONFIG_DIR}/pihole-FTL.conf"
if [ -z "$useUpdateVars" ]; then
useUpdateVars=false
fi
In case you previously have been using custom dnsmasq configuration files with Pi-hole v5, you may want to scrutinise /etc/dnsmasq.d/ as well.
If you want v6 to honor them, you may want to enable misc.dmisc.etc_dnsmasq_d, but note that other processes sometimes write to that directory as well, which may or may not be desired, and which may or may not produce conflicts.
Oh, that's a great idea - I didn't think of that. I'm actually wanting the V6 script because theoretically that's what it should be running at this point. I have a raspberry pi also running V6, so I'm wanting to check back and forth between the two to make sure everything that's supposed to be updated is updated.