#!/bin/bash # # Copyright (c) 2015 Brocade Communications Systems, Inc. and others. All rights reserved. # # This program and the accompanying materials are made available under the # terms of the Eclipse Public License v1.0 which accompanies this distribution, # and is available at http://www.eclipse.org/legal/epl-v10.html # function usage() { # Print any error messages test "$1" != "" && echo " ERROR: $1" # Print standard usage help cat << EOF This script is used to enable or disable the config datastore persistence. The default state is enabled. The user should restart controller to apply changes. The script can be used before starting controller for the first time. Usage: $0 EOF exit 1 } function end_banner { cat <\(.*\)<\/version>/\1/p' ${ORIG_CONF_DIR}/maven-metadata-local.xml) ORIG_CONF_DIR=${ORIG_CONF_DIR}/${version} ORIG_CLUSTER_CONF=sal-clustering-config-${version}-datastore.cfg if [ -f ${ORIG_CONF_DIR}/${ORIG_CLUSTER_CONF} ]; then cat <