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:
parent
b89154ca30
commit
844f07757d
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user