2019-04-17 18:03:58 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
|
|
|
# Clear the current cluster configuration
|
|
|
|
#
|
|
|
|
|
|
|
|
here=$(dirname "$0")
|
|
|
|
# shellcheck source=multinode-demo/common.sh
|
|
|
|
source "$here"/common.sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2019-07-30 22:43:47 -07:00
|
|
|
(
|
|
|
|
set -x
|
|
|
|
rm -rf "${SOLANA_CONFIG_DIR:?}/" # <-- $i might be a symlink, rm the other side of it first
|
|
|
|
rm -rf "$SOLANA_CONFIG_DIR"
|
|
|
|
mkdir -p "$SOLANA_CONFIG_DIR"
|
|
|
|
)
|
2019-04-17 18:03:58 -07:00
|
|
|
|
2019-07-16 19:09:14 -07:00
|
|
|
setup_secondary_mount
|