templates/scripts/lookup.sh in opskeleton-0.0.5 vs templates/scripts/lookup.sh in opskeleton-0.1.0
- old
+ new
@@ -1,3 +1,6 @@
-wget -q -O - "http://$1:8080/registry/profile/$2"
+#!/bin/sh
+
+export ip=`echo $SSH_CONNECTION | cut -d ' ' -f 1`
+wget -q -O - "http://$ip:8080/registry/profile/$1"