Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2017-09-01 11:16:45 +0300
committernachoparker <nacho@ownyourbits.com>2017-09-02 00:32:22 +0300
commite5790d4a853d52a1087fa5cfa23d75eb78f69067 (patch)
treee95c1805e3fafd9b702814f3486efe5990642dbe /nextcloudpi.sh
parenta695c1669383d9ab8d02488177c1a6739c8a889c (diff)
fix IP regexv0.24.18
Diffstat (limited to 'nextcloudpi.sh')
-rw-r--r--nextcloudpi.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/nextcloudpi.sh b/nextcloudpi.sh
index 36946c19..2c4d6777 100644
--- a/nextcloudpi.sh
+++ b/nextcloudpi.sh
@@ -106,7 +106,7 @@ EOF
cat > /usr/local/bin/nextcloud-domain.sh <<'EOF'
#!/bin/bash
IFACE=$( ip r | grep "default via" | awk '{ print $5 }' )
-IP=$( ip a | grep "global $IFACE" | grep -oP '\d{1,3}(.\d{1,3}){3}' | head -1 )
+IP=$( ip a | grep "global $IFACE" | grep -oP '\d{1,3}(\.\d{1,3}){3}' | head -1 )
# wicd service finishes before completing DHCP
while [[ "$IP" == "" ]]; do
sleep 3