clear-config.sh now works with a secondary disk (#5135)

This commit is contained in:
Michael Vines
2019-07-16 19:09:14 -07:00
committed by GitHub
parent 94db9cd412
commit 349e5001d6
2 changed files with 11 additions and 6 deletions

View File

@@ -11,7 +11,9 @@ set -e
for i in "$SOLANA_RSYNC_CONFIG_DIR" "$SOLANA_CONFIG_DIR"; do
echo "Cleaning $i"
rm -rvf "${i:?}/" # <-- $i might be a symlink, rm the other side of it first
rm -rvf "$i"
mkdir -p "$i"
done
setup_secondary_mount