summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2018-11-26 12:55:19 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2018-11-26 12:55:19 +0100
commitde8c4ea7495184e1cb75ad518a1970340dc88f93 (patch)
tree8b47e8dd395fdc7be46466979365e56a5abcccd4 /server
parent518d4d84f755185f224c82d5cc3f49b350af4b05 (diff)
#878 sendFileMcast now works with more than one server interface
Diffstat (limited to 'server')
-rwxr-xr-xserver/bin/getRepoIface9
1 files changed, 9 insertions, 0 deletions
diff --git a/server/bin/getRepoIface b/server/bin/getRepoIface
new file mode 100755
index 00000000..2ce208be
--- /dev/null
+++ b/server/bin/getRepoIface
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# This script takes the IPlocal variable of the repository
+# and returns the system interface
+# Alfredo Luque <aluque@soleta.eu>
+
+source /opt/opengnsys/etc/ogAdmRepo.cfg
+
+ip addr show | grep $IPlocal | cut -f2 | awk '{ print $NF }'