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

* Add support for additional disks for config-local

* Restore wrongly deleted lines

* Shellcheck

* add args in the right place dummy

* Fix nits

* typo

* var naming cleanup

* Add stub function for remaining cloud providers
This commit is contained in:
Dan Albert
2019-07-11 16:23:32 -06:00
committed by GitHub
parent 5698d48dc8
commit e4861f52e0
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