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>2021-09-28 03:21:33 +0300
committernachoparker <nacho@ownyourbits.com>2021-09-28 03:27:44 +0300
commitb0678445501a39a4fd52e98b011c709352632b7b (patch)
treea9e748db24190ecac748f38ce4feaf78cd93a547 /install.sh
parent6ad96eddd3c2893ef9b75b6d4e0a927dab5c793f (diff)
add get_ip functionv1.39.15
Signed-off-by: nachoparker <nacho@ownyourbits.com>
Diffstat (limited to 'install.sh')
-rw-r--r--install.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/install.sh b/install.sh
index 7d9b8abc..b5c2b9ee 100644
--- a/install.sh
+++ b/install.sh
@@ -67,8 +67,7 @@ rm /.ncp-image
cd -
rm -rf "${TMPDIR}"
-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 )"
+IP="$(get_ip)"
echo "Done.