Allow anonymous access to gitpod
This commit is contained in:
parent
58d40a1eea
commit
57693d85fc
|
@ -2,6 +2,7 @@ from django.core.management.commands.migrate import Command as BaseCommand
|
||||||
from django.core.management import call_command
|
from django.core.management import call_command
|
||||||
from funkwhale_api.music.models import Library
|
from funkwhale_api.music.models import Library
|
||||||
from funkwhale_api.users.models import User
|
from funkwhale_api.users.models import User
|
||||||
|
from funkwhale_api.common import preferences
|
||||||
import uvicorn
|
import uvicorn
|
||||||
import debugpy
|
import debugpy
|
||||||
import os
|
import os
|
||||||
|
@ -45,6 +46,9 @@ class Command(BaseCommand):
|
||||||
|
|
||||||
user.save()
|
user.save()
|
||||||
|
|
||||||
|
# Allow anonymous access
|
||||||
|
preferences.set("common__api_authentication_required", False)
|
||||||
|
|
||||||
# Download music catalog
|
# Download music catalog
|
||||||
os.system("git clone https://dev.funkwhale.audio/funkwhale/catalog.git /tmp/catalog")
|
os.system("git clone https://dev.funkwhale.audio/funkwhale/catalog.git /tmp/catalog")
|
||||||
os.system("mv -f /tmp/catalog/music /workspace/funkwhale/data")
|
os.system("mv -f /tmp/catalog/music /workspace/funkwhale/data")
|
||||||
|
|
Loading…
Reference in New Issue