diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/nextcloudpi-config.d/dnsmasq.sh | 2 | ||||
-rw-r--r-- | etc/nextcloudpi-config.d/nc-forward-ports.sh | 2 |
2 files changed, 2 insertions, 2 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; } diff --git a/etc/nextcloudpi-config.d/nc-forward-ports.sh b/etc/nextcloudpi-config.d/nc-forward-ports.sh index f8342a1f..5f1fdfc6 100644 --- a/etc/nextcloudpi-config.d/nc-forward-ports.sh +++ b/etc/nextcloudpi-config.d/nc-forward-ports.sh @@ -40,7 +40,7 @@ install() configure() { 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 ) upnpc -d "$HTTPSPORT_" TCP upnpc -d "$HTTPPORT_" TCP upnpc -a "$IP" 443 "$HTTPSPORT_" TCP |