]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - scripts/clean/server/test.sh
6 dbname
="peertube_test$1"
8 dropdb
--if-exists "$dbname" 2>&1
10 createdb
-O peertube
"$dbname"
11 psql
-c "CREATE EXTENSION pg_trgm;" "$dbname" &
12 psql
-c "CREATE EXTENSION unaccent;" "$dbname" &
16 rm -rf "./test$1" "./config/local-test.json" "./config/local-test-$1.json" ~
/.config
/PeerTube
/CLI
-$1
23 redis
-cli -h "$host" KEYS
"bull-localhost:$port*" | grep -v empty
| xargs -r redis
-cli -h "$host" DEL
24 redis
-cli -h "$host" KEYS
"redis-localhost:$port*" | grep -v empty
| xargs -r redis
-cli -h "$host" DEL
25 redis
-cli -h "$host" KEYS
"*redis-localhost:$port-" | grep -v empty
| xargs -r redis
-cli -h "$host" DEL
30 if [ ! -z ${1+x} ]; then