summarylogtreecommitdiffstats
path: root/pi-hole-server.install
diff options
context:
space:
mode:
authormax.bra2017-12-11 22:38:47 +0100
committermax.bra2017-12-11 22:38:47 +0100
commit3e4b5cefb79f5555f05f2f6b10a18277c92b3f70 (patch)
tree9dfd920f5b2c3fd5e3e89e72918328e9bbf1f919 /pi-hole-server.install
parentbc3596453508eb80044f505f7c34327feb7fdffc (diff)
downloadaur-3e4b5cefb79f5555f05f2f6b10a18277c92b3f70.tar.gz
issue 1806 and pihole etc dir ownership
Diffstat (limited to 'pi-hole-server.install')
-rw-r--r--pi-hole-server.install4
1 files changed, 4 insertions, 0 deletions
diff --git a/pi-hole-server.install b/pi-hole-server.install
index e95eb7398684..439188c2752c 100644
--- a/pi-hole-server.install
+++ b/pi-hole-server.install
@@ -6,6 +6,7 @@ post_install() {
echo -e "\e[1;33m==>\e[0m Read setup instructions at \e[1;36mhttps://wiki.archlinux.org/index.php/Pi-hole\e[0m"
echo -e "\e[1;33m==>\e[0m Generating initial block list, please wait...\e[0m"
chown -R http:http /srv/http/pihole
+ chown -R pihole:pihole /etc/pihole
/opt/pihole/mimic_setupVars.conf.sh
# update lists on first run
@@ -21,6 +22,9 @@ post_upgrade() {
[ -e /etc/pihole/hosts ] && rm /etc/pihole/hosts
[ -e /etc/pihole/.useIPv6 ] && rm /etc/pihole/.useIPv6
+ # update owner of existing dir
+ chown -R pihole:pihole /etc/pihole
+
warning
# keep pacman from throwing errors should none them be on the filesystem