diff options
author | Adam Warner <me@adamwarner.co.uk> | 2019-12-11 22:09:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-11 22:09:02 +0300 |
commit | ec09b5843c13d0c527bd6afbbcdcabbb0ff6fdab (patch) | |
tree | ed6b43db309f92a1340c53c1b1a40164c1f19f0a /advanced | |
parent | 620e1e9c73277fb1f6c1f0be3a8cc3bd9d2b82f5 (diff) | |
parent | 078e7e1686e40ff4dbcbcd241dce9c22959535b4 (diff) |
Merge branch 'development' into fix/do_not_force_local_resolver
Diffstat (limited to 'advanced')
-rw-r--r-- | advanced/Templates/pihole-FTL.service | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/advanced/Templates/pihole-FTL.service b/advanced/Templates/pihole-FTL.service index 410b9b2c..f32a5e89 100644 --- a/advanced/Templates/pihole-FTL.service +++ b/advanced/Templates/pihole-FTL.service @@ -48,6 +48,8 @@ start() { chown pihole:pihole /etc/pihole /etc/pihole/dhcp.leases 2> /dev/null chown pihole:pihole /var/log/pihole-FTL.log /var/log/pihole.log chmod 0644 /var/log/pihole-FTL.log /run/pihole-FTL.pid /run/pihole-FTL.port /var/log/pihole.log + # Chown database files to the user FTL runs as. We ignore errors as the files may not (yet) exist + chown pihole:pihole /etc/pihole/pihole-FTL.db /etc/pihole/gravity.db 2> /dev/null if setcap CAP_NET_BIND_SERVICE,CAP_NET_RAW,CAP_NET_ADMIN+eip "$(which pihole-FTL)"; then su -s /bin/sh -c "/usr/bin/pihole-FTL" "$FTLUSER" else |