Add support for additional disks for config-local (#5030) (#5040)

* Add support for additional disks for config-local

(cherry picked from commit e4861f52e0)
This commit is contained in:
mergify[bot]
2019-07-12 10:01:07 -06:00
committed by Dan Albert
parent 086e20f6c7
commit 81dbe3c49b
7 changed files with 121 additions and 4 deletions

View File

@@ -70,7 +70,12 @@ source "$SOLANA_ROOT"/scripts/configure-metrics.sh
SOLANA_RSYNC_CONFIG_DIR=$SOLANA_ROOT/config
# Configuration that remains local
SOLANA_CONFIG_DIR=$SOLANA_ROOT/config-local
SECONDARY_DISK_MOUNT_POINT=/mnt/extra-disk
if [[ -d $SECONDARY_DISK_MOUNT_POINT ]]; then
SOLANA_CONFIG_DIR=$SECONDARY_DISK_MOUNT_POINT/config-local
else
SOLANA_CONFIG_DIR=$SOLANA_ROOT/config-local
fi
default_arg() {
declare name=$1