mirror of https://github.com/pi-hole/pi-hole
Worked in review comments, inlined script content (we don't actually need setcap in the systemd unit as setcap is used in the installer/updater and even in the Makefile so capabilites should always be there)
Signed-off-by: DL6ER <dl6er@dl6er.de>pull/2112/head
parent
824c4cdcc9
commit
b89154ca30
@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
/bin/touch /var/log/pihole-FTL.log /run/pihole-FTL.pid /run/pihole-FTL.port /var/log/pihole.log
|
||||
/bin/mkdir -p /var/run/pihole /var/log/pihole
|
||||
/bin/chown pihole:pihole /var/run/pihole /var/log/pihole
|
||||
if [ -e "/var/run/pihole/FTL.sock" ]; then
|
||||
/bin/rm /var/run/pihole/FTL.sock
|
||||
fi
|
||||
/bin/chown pihole:pihole /var/log/pihole-FTL.log /run/pihole-FTL.pid /run/pihole-FTL.port /etc/pihole /etc/pihole/dhcp.leases /var/log/pihole.log
|
||||
/bin/chmod 0644 /var/log/pihole-FTL.log /run/pihole-FTL.pid /run/pihole-FTL.port /var/log/pihole.log
|
||||
/bin/echo "nameserver 127.0.0.1" | /sbin/resolvconf -a lo.piholeFTL
|
Loading…
Reference in new issue