From bf8171274bfdbab5b84cba103c9ab05eb26ebb0e Mon Sep 17 00:00:00 2001
From: David Beniamine <david.beniamine@tetras-libre.fr>
Date: Tue, 18 Sep 2018 10:56:14 +0200
Subject: [PATCH] Use school ip

---
 registry/scripts/registry.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/registry/scripts/registry.sh b/registry/scripts/registry.sh
index 95ac8bb..f447c86 100755
--- a/registry/scripts/registry.sh
+++ b/registry/scripts/registry.sh
@@ -21,7 +21,7 @@ getip(){
         < /var/lib/dhcp/dhcpd.leases
     }
 
-IP=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1)
+IP=$(ip a | awk '/inet.*eth/ {print $2}' | cut -d / -f 1)
 port=9998
 conf_dir="/etc/registry"
 conf_file="$conf_dir/hosts"
-- 
GitLab