diff --git a/api/funkwhale_api/common/management/commands/gitpod.py b/api/funkwhale_api/common/management/commands/gitpod.py index b1014c7bb..007be0eff 100644 --- a/api/funkwhale_api/common/management/commands/gitpod.py +++ b/api/funkwhale_api/common/management/commands/gitpod.py @@ -2,6 +2,7 @@ from django.core.management.commands.migrate import Command as BaseCommand from django.core.management import call_command from funkwhale_api.music.models import Library from funkwhale_api.users.models import User +from funkwhale_api.common import preferences import uvicorn import debugpy import os @@ -45,6 +46,9 @@ class Command(BaseCommand): user.save() + # Allow anonymous access + preferences.set("common__api_authentication_required", False) + # Download music catalog os.system("git clone https://dev.funkwhale.audio/funkwhale/catalog.git /tmp/catalog") os.system("mv -f /tmp/catalog/music /workspace/funkwhale/data")