]> git.feebdaed.xyz Git - 0xmirror/pi-hole.git/commit
Uninstall refactor
authorRob Gill <rrobgill@protonmail.com>
Thu, 28 Aug 2025 22:47:00 +0000 (08:47 +1000)
committerRob Gill <rrobgill@protonmail.com>
Thu, 28 Aug 2025 22:47:00 +0000 (08:47 +1000)
commit87f307f1d8088962a4bcc1a0fd2b9da9405a9f7d
treecc77de9fd2703486feeabbcc422a6154c78495e3
parent0a837dd9551583870c43326cf85f035af587b3e0
Uninstall refactor

Split removePiholeFiles into functions for each category.

Reorder execution so that:
  Pihole-FTL is stopped and removed before shutdown scripts are removed.
  User and group are removed before needed commands are removed.

Remove database and log files in user-specified non-default locations,
and use local directories from basic install.sh, falling back to defaults.

Remove use of sudo as the script already checks that it is called as root.

Advise user of location of crontab backup if is created

Make use of service control functions, command detection and default
directories from basic_install.sh

Align variable names with current basic-install.sh

Disable pihole-FTL service immediately, if systemctl is available

Call systemd daemon-reload after removing service files (on systemd systems)

Signed-off-by: Rob Gill <rrobgill@protonmail.com>
automated install/basic-install.sh
automated install/uninstall.sh