diff options
Diffstat (limited to 'etc/nextcloudpi-config.d/dnsmasq.sh')
-rw-r--r-- | etc/nextcloudpi-config.d/dnsmasq.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/nextcloudpi-config.d/dnsmasq.sh b/etc/nextcloudpi-config.d/dnsmasq.sh index ed1d358b..5688b5c0 100644 --- a/etc/nextcloudpi-config.d/dnsmasq.sh +++ b/etc/nextcloudpi-config.d/dnsmasq.sh @@ -40,7 +40,7 @@ configure() [[ $ACTIVE_ != "yes" ]] && { service dnsmasq stop; update-rc.d dnsmasq disable; return; } local IFACE=$( ip r | grep "default via" | awk '{ print $5 }' ) - local IP=$( ip a | grep "global $IFACE" | grep -oP '\d{1,3}(.\d{1,3}){3}' | head -1 ) + local IP=$( ip a | grep "global $IFACE" | grep -oP '\d{1,3}(\.\d{1,3}){3}' | head -1 ) [[ "$IP" == "" ]] && { echo "could not detect IP"; return 1; } |