mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-10-08 23:44:42 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
23
roles/funkwhale/templates/funkwhale-update-media.service.j2
Normal file
23
roles/funkwhale/templates/funkwhale-update-media.service.j2
Normal file
@@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=Update funkwhale media library
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
{% for lib in funkwhale_libraries %}
|
||||
ExecStart={{ funkwhale_root_dir }}/venv/bin/python \
|
||||
{{ funkwhale_root_dir }}/api/manage.py \
|
||||
import_files {{ lib.id }} \
|
||||
--no-input{% if lib.inplace %} --in-place{% endif %} \
|
||||
"{{ lib.path }}" \
|
||||
--recursive
|
||||
{% endfor %}
|
||||
ExecStart={{ funkwhale_root_dir }}/venv/bin/python \
|
||||
{{ funkwhale_root_dir }}/api/manage.py \
|
||||
check_inplace_files \
|
||||
--no-dry-run
|
||||
ExecStart={{ funkwhale_root_dir }}/venv/bin/python \
|
||||
{{ funkwhale_root_dir }}/api/manage.py \
|
||||
prune_library \
|
||||
--tracks --albums --artists --no-dry-run
|
||||
User={{ funkwhale_user }}
|
||||
Group={{ funkwhale_user }}
|
Reference in New Issue
Block a user