]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - scripts/clean/server/test.sh
5 for i
in $(seq 1 6); do
6 dbname
="peertube_test$i"
8 dropdb
--if-exists "$dbname"
10 rm -f "./config/local-test.json"
11 rm -f "./config/local-test-$i.json"
12 createdb
-O peertube
"$dbname"
13 psql
-c "CREATE EXTENSION pg_trgm;" "$dbname"
14 psql
-c "CREATE EXTENSION unaccent;" "$dbname"
15 redis
-cli KEYS
"bull-localhost:900$i*" | grep -v empty
| xargs --no-run-if-empty redis
-cli DEL