1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-05-21 00:38:51 +00:00

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 <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2018-05-13 17:44:20 +02:00
parent b89154ca30
commit 844f07757d
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD

View File

@ -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
}