diff options
author | max.bra | 2020-05-11 17:48:20 +0200 |
---|---|---|
committer | max.bra | 2020-05-11 17:48:20 +0200 |
commit | 04398970efaef582ad08ebc6c7c0ff60b9b72512 (patch) | |
tree | 96fa3be9aa86d3cb3d34ab766db9383fe79e26c7 /pi-hole-standalone.install | |
parent | 02900658b666d12b3014fcccea0df4b69b3453de (diff) | |
download | aur-04398970efaef582ad08ebc6c7c0ff60b9b72512.tar.gz |
v. 5.0
Diffstat (limited to 'pi-hole-standalone.install')
-rw-r--r-- | pi-hole-standalone.install | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pi-hole-standalone.install b/pi-hole-standalone.install index 65d05c4831f4..62f0c469f615 100644 --- a/pi-hole-standalone.install +++ b/pi-hole-standalone.install @@ -21,7 +21,10 @@ post_upgrade() { [ -e /etc/pihole/hosts ] && rm /etc/pihole/hosts [ -e /etc/pihole/.useIPv6 ] && rm /etc/pihole/.useIPv6 - warning + # update owner of existing dir and file + chown pihole:pihole /etc/pihole + + # warning # keep pacman from throwing errors should none them be on the filesystem return 0 @@ -30,5 +33,5 @@ post_upgrade() { post_remove() { # delete all temp files except those modified the user # TODO - make this more intelligent to save *.pacsave.# where # is a number - find /etc/pihole -type f ! -name '*.pacsave' -delete + find /etc/pihole -type f ! -name '*.pacsave' ! -name 'pihole-FTL.conf' ! -name 'pihole-FTL.db' ! -name 'gravity.db' -delete } |