Commit ca690688 authored by Creak's avatar Creak
Browse files

Merge branch 'add-clean-script' into 'main'

Add clean script

See merge request !5
parents cf3830d6 b8e17a8b
Pipeline #19068 passed with stage
in 7 seconds
......@@ -5,4 +5,4 @@ linter:
stage: test
image: koalaman/shellcheck-alpine
- shellcheck
- shellcheck
......@@ -8,6 +8,8 @@ This repo is here to help installing Funkwhale using Docker. It follows the
* docker-compose
## Setup
To set up your instance, clone this repo and enter the directory, then run the
script `./`.
......@@ -18,9 +20,22 @@ pass them to it directly. See the help with this command:
./setup --help
## Clean
If you are doing tests, you might want to start from a blank slate each time.
The `` script cleans the Docker containers, their volumes and the
residual files. Since running the containers needs to create volume bindings,
this script needs sudo rights in order to clean the files created with root
Because of the security risk, please take a look at the script to understand
what it does: [``](./
## Developer
* spellchecker
set -e
if [ -d funkwhale ]; then
pushd funkwhale
docker-compose down
docker volume prune -f
if [ -d data ]; then
sudo rm -rf data
rm -rf funkwhale
if [ -d /srv/funkwhale ]; then
sudo rm -rf /srv/funkwhale
rm -rf templates
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment