Fixed cloner_server.sh to not send message if no server specified when clone is done
Kyle Sheumaker [Thu, 28 Apr 2016 16:16:45 +0000 (11:16 -0500)]
etc/cloner3/cloner_server.sh

index 324e402..2f125e9 100755 (executable)
@@ -82,6 +82,11 @@ server_get_image() {
 server_clone_done() {
        NODE=$1
        NEXTBOOT=$2
+
+       if [ "${_server}" = "" ]
+       then
+               return
+       fi
        
        echo "clonerdone|${NODE}|${NEXTBOOT}" | $NETCAT -w 5 ${_server} ${PORT} > /tmp/nc.log
        if [ "$?" != "0" ];