Neon SR1 upgrade
[appc.git] / appc-oam / appc-oam-installer / src / main / resources / scripts / install-feature.sh
index 47a6ea4..5c077e8 100755 (executable)
@@ -36,13 +36,10 @@ then
 
 fi
 
-#${ODL_KARAF_CLIENT} ${ODL_KARAF_CLIENT_OPTS} feature:repo-add ${features.repositories}
-#
-
-
 COUNT=0
 while [ $COUNT -lt 10 ]; do
-       ${ODL_KARAF_CLIENT} ${ODL_KARAF_CLIENT_OPTS} feature:repo-add ${features.repositories} 2> /tmp/installErr
+#      ${ODL_KARAF_CLIENT} ${ODL_KARAF_CLIENT_OPTS} feature:repo-add ${features.repositories} 2> /tmp/installErr
+sshpass -pkaraf ssh -o StrictHostKeyChecking=no karaf@localhost -p 8101 "feature:repo-add ${features.repositories}" 2> /tmp/installErr
        cat /tmp/installErr
        if grep -q 'Failed to get the session' /tmp/installErr; then
                sleep 10
@@ -50,15 +47,4 @@ while [ $COUNT -lt 10 ]; do
                let COUNT=10
        fi
        let COUNT=COUNT+1
-done
-COUNT=0
-while [ $COUNT -lt 10 ]; do
-        2> /tmp/installErr
-               cat /tmp/installErr
-       if grep -q 'Failed to get the session' /tmp/installErr; then
-               sleep 10
-       else
-               let COUNT=10
-       fi
-       let COUNT=COUNT+1
-done
+done
\ No newline at end of file