From 31f5848f1094a81b429e00b09d10c3c4779acf47 Mon Sep 17 00:00:00 2001
From: Keunes <keunes@mailbox.org>
Date: Sun, 25 Aug 2019 16:28:53 +0200
Subject: [PATCH] Add import instructions for ansible-installed instance

---
 docs/admin/importing-music.rst | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/docs/admin/importing-music.rst b/docs/admin/importing-music.rst
index 7c04544e..aea60168 100644
--- a/docs/admin/importing-music.rst
+++ b/docs/admin/importing-music.rst
@@ -25,6 +25,13 @@ to the ``/music`` directory on the container:
     export LIBRARY_ID="<your_libary_id>"
     docker-compose run --rm api python manage.py import_files $LIBRARY_ID "/music/**/*.ogg" --recursive --noinput
 
+When you installed Funkwhale via ansible, you need to call a script instead of Python, and the folder path must be adapted accordingly:
+
+.. code-block:: bash
+
+    export LIBRARY_ID="<your_libary_id>"
+    /srv/funkwhale/manage import_files $LIBRARY_ID "/srv/funkwhale/data/music/**/**/*.ogg" --recursive --noinput
+
 .. note::
     You'll have to create a library in the Web UI before to get your library ID. Simply visit
     https://yourdomain/content/libraries/ to create one.
-- 
GitLab