From 844f07757d971a892a1468e66f39617812bb6fde Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sun, 13 May 2018 17:44:20 +0200 Subject: [PATCH] Use runuser command instead of su in init.d script (the runuser command is part of the util-linux package and always available) Signed-off-by: DL6ER --- advanced/pihole-FTL.initd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/pihole-FTL.initd b/advanced/pihole-FTL.initd index ef8ee9c2..34323eef 100644 --- a/advanced/pihole-FTL.initd +++ b/advanced/pihole-FTL.initd @@ -36,7 +36,7 @@ start() { chmod 0644 /var/log/pihole-FTL.log /run/pihole-FTL.pid /run/pihole-FTL.port /var/log/pihole.log setcap CAP_NET_BIND_SERVICE,CAP_NET_RAW,CAP_NET_ADMIN+eip "$(which pihole-FTL)" echo "nameserver 127.0.0.1" | /sbin/resolvconf -a lo.piholeFTL - su -s /bin/sh -c "/usr/bin/pihole-FTL" "$FTLUSER" + runuser -u "$FTLUSER" "/usr/bin/pihole-FTL" echo fi }