summarylogtreecommitdiffstats
path: root/pi-hole-ftl.install
blob: 0f314a667136a02a35c451cfb3f25dffa4e42b3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_install() {
  # ftl DB permissions
  [ -e /etc/pihole/pihole-FTL.db ] && chown nobody.nobody /etc/pihole /etc/pihole/pihole-FTL.db

  echo -e "\e[1;33m==>\e[0m Possible configurations in \e[1;31m/etc/pihole/pihole-FTL.conf\e[0m file"
  echo -e "\e[1;33m==>\e[0m Please read the instructions on the project page: \e[1;36mhttps://github.com/pi-hole/FTL#ftls-config-file\e[0m"
}

post_upgrade() {
  post_install $1
}

post_remove() {
  userdel -f pihole
}