From e339f3852c30592baaebdb0b8138173af1deb900 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Tue, 21 Feb 2017 11:50:08 +0100 Subject: [PATCH] Change ownership of FTL log to pihole user --- advanced/pihole-FTL.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/advanced/pihole-FTL.service b/advanced/pihole-FTL.service index c161e070..caffd00e 100644 --- a/advanced/pihole-FTL.service +++ b/advanced/pihole-FTL.service @@ -9,7 +9,7 @@ # Description: Enable service provided by pihole-FTL daemon ### END INIT INFO -FTLUSER=pi +FTLUSER=pihole PIDFILE=/var/run/pihole-FTL.pid get_pid() { @@ -26,6 +26,7 @@ start() { echo "pihole-FTL is already running" else touch /var/log/pihole-FTL.log /run/pihole-FTL.pid /run/pihole-FTL.port + chown pihole:pihole /var/log/pihole-FTL.log chmod 0644 /var/log/pihole-FTL.log /run/pihole-FTL.pid /run/pihole-FTL.port su -c "/usr/bin/pihole-FTL" "$FTLUSER" echo