Update to 2020-04-24 19:00

master
Daniel Berteaud 5 years ago
parent e9b4309ff6
commit 783b21aa1a
  1. 8
      roles/funkwhale/defaults/main.yml
  2. 1
      roles/funkwhale/templates/env.j2
  3. 4
      roles/funkwhale/templates/funkwhale-update-media.service.j2
  4. 2
      roles/includes/webapps_set_install_mode.yml

@ -1,12 +1,12 @@
---
funkwhale_version: 0.20.1
funkwhale_version: 0.21
funkwhale_id: 1
#funkwhale_archive_url: https://dev.funkwhale.audio/funkwhale/funkwhale/-/archive/{{ funkwhale_version }}/funkwhale-{{ funkwhale_version }}.tar.gz
funkwhale_base_url: https://dev.funkwhale.audio/funkwhale/funkwhale/-/jobs/artifacts/{{ funkwhale_version }}/download
funkwhale_archive_sha1:
api: 0fc2f0152c18bff3d33410d299b2c67f8a4fe101
front: dc9094508048176ed9f7fe819d6d5e92ed415511
api: 603563d24e8188aa41c7e4e6c244fa5ad8eef8ed
front: 9c288d51c3bda39ab4ef90669c4aaf38d3f6ed27
funkwhale_root_dir: /opt/funkwhale_{{ funkwhale_id }}
# Should ansible manage upgrades of funkwhale, or only initial install
@ -50,5 +50,5 @@ funkwhale_libraries: []
# path: /opt/funkwhale/data/music
# inplace: True
# Increase on busy servers (but will require more memory
# Increase on busy servers (but will require more memory)
funkwhale_web_workers: 1

@ -30,3 +30,4 @@ LDAP_USER_ATTR_MAP='{{ funkwhale_ldap_attr_map }}'
FUNKWHALE_FRONTEND_PATH={{ funkwhale_root_dir }}/front/dist
NGINX_MAX_BODY_SIZE=100M
MUSIC_USE_DENORMALIZATION=True
FUNKWHALE_SPA_HTML_ROOT={{ funkwhale_root_dir }}/front/dist/

@ -8,9 +8,7 @@ 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 %} \
{% for format in [ 'mp3', 'MP3', 'ogg', 'OGG', 'flac', 'FLAC' ] %}
"{{ lib.path | regex_replace('/$', '') }}/**/*.{{ format }}" \
{% endfor %}
"{{ lib.path }}" \
--recursive
{% endfor %}
ExecStart={{ funkwhale_root_dir }}/venv/bin/python \

@ -23,5 +23,5 @@
set_fact: install_mode='upgrade'
when:
- version_file.stat.exists
- current_version != version
- current_version | string != version | string
- manage_upgrade | default(True)

Loading…
Cancel
Save