mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-11 08:03:09 -06:00
Add script for local testing to clean data, but keep existing config in place
This commit is contained in:
parent
6642133273
commit
3c26fbc570
17
local_test/clean_data.sh
Executable file
17
local_test/clean_data.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash -Eeu
|
||||
|
||||
cd $(dirname "$0")
|
||||
|
||||
source vars.env
|
||||
|
||||
echo "Cleaning data from ${TEST_DIR}"
|
||||
|
||||
for ((I = 0; I < ${NUM_NODES}; I++))
|
||||
do
|
||||
NODE_DIR="${TEST_DIR}/node${I}"
|
||||
echo "Cleaning node ${I} at ${NODE_DIR}"
|
||||
cd ${NODE_DIR}
|
||||
rm *.db
|
||||
rm logs/*
|
||||
rm -rf jetstream
|
||||
done
|
||||
Loading…
Reference in a new issue