Fix the wrong path in the install scripts
[it/dep.git] / aux / 80-Auxiliary-Functions / bin / install
index 8e8170d..de7c09b 100755 (executable)
@@ -43,17 +43,18 @@ echo "Platform Namespace: $NAMESPACE"
 echo "Helm Release Name: $RELEASE_NAME"
 
 
-COMMON_CHART_VERSION=$(cat $DIR/../../50-RIC-Platform/charts/common/Chart.yaml | grep version | awk '{print $2}')
+COMMON_CHART_VERSION=$(cat $DIR/../../../ric-platform/50-RIC-Platform/helm/common/Chart.yaml | grep version | awk '{print $2}')
 
-helm package -d /tmp $DIR/../../50-RIC-Platform/charts/common
+helm package -d /tmp $DIR/../../../ric-platform/50-RIC-Platform/helm/common
 
 
 for component in $RICAUX_COMPONENTS; do
   echo "Preparing chart for comonent $component"
-  cp /tmp/common-$COMMON_CHART_VERSION.tgz $DIR/../charts/$component/charts/
+  mkdir -p  $DIR/../helm/$component/charts/
+  cp /tmp/common-$COMMON_CHART_VERSION.tgz $DIR/../helm/$component/charts/
   if [ -z $OVERRIDEYAML ]; then
-  helm install --namespace "${NAMESPACE}" --name "${RELEASE_NAME}-$component" $DIR/../charts/$component
+  helm install --namespace "${NAMESPACE}" --name "${RELEASE_NAME}-$component" $DIR/../helm/$component
   else
-  helm install -f $OVERRIDEYAML --namespace "${NAMESPACE}" --name "${RELEASE_NAME}-$component" $DIR/../charts/$component
+  helm install -f $OVERRIDEYAML --namespace "${NAMESPACE}" --name "${RELEASE_NAME}-$component" $DIR/../helm/$component
   fi
 done