+
+for feature in ${APPC_FEATURES_1}
+do
+ group1Features="${group1Features} ${feature}"
+done
+
+ echo "Installing features: ${group1Features}"
+ start=$(date +%s)
+sshpass -pkaraf ssh -o StrictHostKeyChecking=no karaf@localhost -p 8101 "feature:install -r ${group1Features}"
+# ${ODL_HOME}/bin/client "feature:install -r ${group1Features}"
+ end=$(date +%s)
+ echo "Install of features took $(expr $end - $start) seconds"
+ sleep 7s
+ echo "Sleep Finished"
+
+ echo "Installing dispatcher features"
+ start=$(date +%s)
+sshpass -pkaraf ssh -o StrictHostKeyChecking=no karaf@localhost -p 8101 "feature:install -r onap-appc-request-handler onap-appc-command-executor onap-appc-lifecycle-management onap-appc-workflow-management lock-manager onap-appc-provider"
+# ${ODL_HOME}/bin/client "feature:install -r onap-appc-request-handler onap-appc-command-executor onap-appc-lifecycle-management onap-appc-workflow-management lock-manager onap-appc-provider"
+ end=$(date +%s)
+ echo "Install of dispatcher features took $(expr $end - $start) seconds"
+ sleep 7s
+ echo "Sleep Finished"
+
+for feature in ${APPC_FEATURES_2}
+do
+ group2Features="${group2Features} ${feature}"
+done
+
+ echo "Installing features: ${group2Features}"
+ start=$(date +%s)
+sshpass -pkaraf ssh -o StrictHostKeyChecking=no karaf@localhost -p 8101 "feature:install -r ${group2Features}"
+# ${ODL_HOME}/bin/client "feature:install -r ${group2Features}"
+ end=$(date +%s)
+ echo "Install of features took $(expr $end - $start) seconds"
+ sleep 7s
+ echo "Sleep Finished"
+
+for feature in ${APPC_FEATURES_3}
+do
+ group3Features="${group3Features} ${feature}"
+done
+
+ echo "Installing features: ${group3Features}"
+ start=$(date +%s)
+sshpass -pkaraf ssh -o StrictHostKeyChecking=no karaf@localhost -p 8101 "feature:install -r ${group3Features}"
+# ${ODL_HOME}/bin/client "feature:install -r ${group3Features}"
+ end=$(date +%s)
+ echo "Install of features took $(expr $end - $start) seconds"
+ sleep 7s
+ echo "Sleep Finished"
+
+#Copy json template file for use by the generic restart DG aai fix
+mkdir -p /opt/onap/appc/restapi/templates
+cp /opt/onap/appc/data/aai-named-query.json /opt/onap/appc/restapi/templates/aai-named-query.json
+