]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - scripts/clean/server/test.sh
Process last hour views instead of current hour
[github/Chocobozzz/PeerTube.git] / scripts / clean / server / test.sh
CommitLineData
0e4ffb4b
LA
1#!/bin/sh
2
3set -eu
93534495
C
4
5for i in $(seq 1 6); do
57c36b27
C
6 dbname="peertube_test$i"
7
8 dropdb --if-exists "$dbname"
93534495 9 rm -rf "./test$i"
fd206f0b
C
10 rm -f "./config/local-test.json"
11 rm -f "./config/local-test-$i.json"
57c36b27
C
12 createdb -O peertube "$dbname"
13 psql -c "CREATE EXTENSION pg_trgm;" "$dbname"
14 psql -c "CREATE EXTENSION unaccent;" "$dbname"
94831479 15 redis-cli KEYS "bull-localhost:900$i*" | grep -v empty | xargs --no-run-if-empty redis-cli DEL
93534495 16done