diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-09-01 11:16:45 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-09-02 00:32:22 +0300 |
commit | e5790d4a853d52a1087fa5cfa23d75eb78f69067 (patch) | |
tree | e95c1805e3fafd9b702814f3486efe5990642dbe /etc/nextcloudpi-config.d/dnsmasq.sh | |
parent | a695c1669383d9ab8d02488177c1a6739c8a889c (diff) |
fix IP regexv0.24.18
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; } |