mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2025-12-24 12:28:56 +00:00
CAP_STR will always be empty, since 776bac7b moved the calculation of that variable back out to bash_functions.sh
The capabilities are already set there, so they do not need to be set again here. Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
@@ -38,8 +38,7 @@ if [ ! -f /var/log/pihole-FTL.log ]; then
|
||||
chown -h pihole:pihole /var/log/pihole-FTL.log
|
||||
fi
|
||||
|
||||
# Call capsh with the detected capabilities
|
||||
capsh --inh=${CAP_STR:1} --addamb=${CAP_STR:1} --user=$DNSMASQ_USER --keep=1 -- -c "/usr/bin/pihole-FTL $FTL_CMD >/dev/null 2>&1"
|
||||
capsh --user=$DNSMASQ_USER --keep=1 -- -c "/usr/bin/pihole-FTL $FTL_CMD >/dev/null 2>&1"
|
||||
|
||||
# Notes on above:
|
||||
# - DNSMASQ_USER default of pihole is in Dockerfile & can be overwritten by runtime container env
|
||||
|
||||
Reference in New Issue
Block a user