File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -251,9 +251,12 @@ fix_capabilities() {
251251
252252 setcap " ${CAP_STR: 1} " +ep " $( which pihole-FTL) " || ret=$?
253253
254- if [[ $ret -ne 0 && " ${DNSMASQ_USER:- pihole} " != " root" ]]; then
255- echo " [!] ERROR: Unable to set capabilities for pihole-FTL. Cannot run as non-root."
256- echo " If you are seeing this error, please set the environment variable 'DNSMASQ_USER' to the value 'root'"
254+ if [[ $ret -ne 0 ]]; then
255+ echo " [!] ERROR: Unable to set capabilities for pihole-FTL. "
256+ if [[ " ${DNSMASQ_USER:- pihole} " != " root" ]]; then
257+ echo " Cannot run as non-root."
258+ echo " If you are seeing this error, please set the environment variable 'DNSMASQ_USER' to the value 'root'"
259+ fi
257260 exit 1
258261 fi
259262 else
You can’t perform that action at this time.
0 commit comments