]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - scripts/clean/server/test.sh
1f1c9cec0bec60809a14ca63e5b6e5edd3b9d95e
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-127.0.0.1:$port*" | grep -v empty
| xargs -r redis
-cli -h "$host" DEL
24 redis
-cli -h "$host" KEYS
"redis-127.0.0.1:$port*" | grep -v empty
| xargs -r redis
-cli -h "$host" DEL
25 redis
-cli -h "$host" KEYS
"*redis-127.0.0.1:$port-" | grep -v empty
| xargs -r redis
-cli -h "$host" DEL
30 if [ ! -z ${1+x} ]; then