Fix Nexus and Chartmuseum install scripts
[it/dep.git] / ric-infra / 15-Chartmuseum / bin / install
index f1a3bb8..ae097fe 100755 (executable)
@@ -64,11 +64,12 @@ NODENAME=$(kubectl get node | awk 'NR==2{print $1}')
 kubectl label --overwrite nodes $NODENAME helm-node=enable
 
 DIRTEMP=$DIR
-. ./clear_data_path
+. "$DIR/clear_data_path"
 DIR=$DIRTEMP
 
 
 RICINFRA_COMPONENTS="chartmuseum"
+mkdir -p /tmp/chartmuseum-data
 
 echo "Deploying RIC infra components [$RICINFRA_COMPONENTS]"
 echo "Helm Release Name: $RELEASE_NAME"
@@ -79,11 +80,10 @@ helm package -d /tmp $DIR/../../../ric-common/Common-Template/helm/ric-common
 
 
 
-
-
 for component in $RICINFRA_COMPONENTS; do
 
   mkdir -p $DIR/../helm/$component/charts/
+
   cp /tmp/ric-common-$COMMON_CHART_VERSION.tgz $DIR/../helm/$component/charts/
 
   if [ -z $OVERRIDEYAML ]; then