mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 06:10:20 +00:00
Sudo added to ifconfig to ensure it runs if debug not run as root
This commit is contained in:
parent
ec4d2d65a6
commit
5f7c11f495
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ function testNslookup {
|
||||||
|
|
||||||
### Check Pi internet connections ###
|
### Check Pi internet connections ###
|
||||||
# Log the IP addresses of this Pi
|
# Log the IP addresses of this Pi
|
||||||
IPADDR=$(ifconfig | perl -nle 's/dr:(\S+)/print $1/e')
|
IPADDR=$($SUDO ifconfig | perl -nle 's/dr:(\S+)/print $1/e')
|
||||||
echo "::: Writing local IPs to debug log"
|
echo "::: Writing local IPs to debug log"
|
||||||
echo "IP Addresses of this Pi:" >> $DEBUG_LOG
|
echo "IP Addresses of this Pi:" >> $DEBUG_LOG
|
||||||
echo "$IPADDR" >> $DEBUG_LOG
|
echo "$IPADDR" >> $DEBUG_LOG
|
||||||
|
|
Loading…
Reference in a new issue