From a5d44bef84a193c84c7772e5a0d0f9a5d5446db2 Mon Sep 17 00:00:00 2001
From: Romain Failliot <romain.failliot@foolstep.com>
Date: Sat, 5 Feb 2022 13:07:22 -0500
Subject: [PATCH] Fix Funkwhale instance URL port number
---
setup.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/setup.sh b/setup.sh
index fd07768..1fd24f9 100755
--- a/setup.sh
+++ b/setup.sh
@@ -30,7 +30,7 @@ echo "done"
# Create .env and reduce permissions on the .env file since it contains
# sensitive data.
echo "Copy files"
-mkdir nginx
+mkdir -p nginx
cp templates/nginx/funkwhale.template nginx/
cp templates/nginx/funkwhale_proxy.conf nginx/
cp templates/docker-compose.yml .
@@ -60,4 +60,5 @@ docker-compose run --rm api python manage.py createsuperuser
echo "Run the Funkwhale instance"
docker-compose up -d
-echo "The instance is now running at https://$FUNKWHALE_HOSTNAME"
+source "$PWD/.env"
+echo "The instance is accessible locally at http://localhost:${FUNKWHALE_API_PORT}"
--
GitLab