Add support for Ceph based PV for chartmuseum and dashboard
[it/dep.git] / bin / clean-up-aux
similarity index 68%
rename from ric-infra/15-Chartmuseum/bin/clear_data_path
rename to bin/clean-up-aux
index f7a3780..e36393b 100755 (executable)
 #   limitations under the License.                                             #
 ################################################################################
 
-OVERRIDEYAML=$1
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
-
-
-
-
-
-
-if [ -z $OVERRIDEYAML ]; then
-
-  DATAPATH=$(cat $DIR/../helm/chartmuseum/values.yaml | awk '/^.*datapath:.*/{ print $2;}')
-  
-else
-  DATAPATH=$(cat $OVERRIDEYAML | awk '/^chartmuseum:.*/{ getline; while ( match($0, / .*/) || (!$0)){  if(getline == 0){break;}; if (match($0, /^ .*datapath:.*/)){print $2}} }')
-
-
-  if [ -z $DATAPATH ]; then
-    DATAPATH=$(cat $DIR/../helm/chartmuseum/values.yaml | awk '/^.*datapath:.*/{ print $2;}')
-  fi
-
-fi
-
-  rm -rf $DATAPATH
-
-  mkdir -p $DATAPATH
-
-
-  chmod -R a+rwx $DATAPATH
+# This script clean up the PV data for aux cluster
 
+rm -rf /opt/data/dashboard-data
+rm -rf /opt/data/chartmuseum-data