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:
Diffstat (limited to 'nextcloudplus.sh')
-rw-r--r--nextcloudplus.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/nextcloudplus.sh b/nextcloudplus.sh
index 50c53a1e..5e73c873 100644
--- a/nextcloudplus.sh
+++ b/nextcloudplus.sh
@@ -154,7 +154,7 @@ EOF
cat > /usr/local/bin/nextcloud-domain.sh <<'EOF'
#!/bin/bash
-IFACE=$( ip r | grep "default via" | awk '{ print $5 }' )
+IFACE=$( ip r | grep "default via" | awk '{ print $5 }' | head -1 )
IP=$( ip a show dev "$IFACE" | grep global | grep -oP '\d{1,3}(.\d{1,3}){3}' | head -1 )
# wicd service finishes before completing DHCP
while [[ "$IP" == "" ]]; do