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:
parent
7b80d7de66
commit
a0421789cc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue