Skip to content
Snippets Groups Projects
Commit b80910f9 authored by Lerk's avatar Lerk
Browse files

Add option to disable access to api admin dashboard to install script

parent 0163d38b
No related branches found
No related tags found
No related merge requests found
...@@ -89,10 +89,12 @@ setup() { ...@@ -89,10 +89,12 @@ setup() {
read -p "Enter your redis configuration, (e.g redis://127.0.0.1:6379/0): " funkwhale_redis_url read -p "Enter your redis configuration, (e.g redis://127.0.0.1:6379/0): " funkwhale_redis_url
funkwhale_systemd_after="funkwhale_systemd_after: " funkwhale_systemd_after="funkwhale_systemd_after: "
fi fi
yesno_prompt funkwhale_disable_django_admin 'Disable access to API admin dashboard?' 'no'
else else
funkwhale_nginx_managed="true" funkwhale_nginx_managed="true"
funkwhale_database_managed="true" funkwhale_database_managed="true"
funkwhale_redis_managed="true" funkwhale_redis_managed="true"
funkwhale_disable_django_admin="false"
fi fi
...@@ -112,6 +114,9 @@ setup() { ...@@ -112,6 +114,9 @@ setup() {
if [ "$funkwhale_database_managed" = "false" ]; then if [ "$funkwhale_database_managed" = "false" ]; then
echo " - Custom PostgreSQL configuration: $funkwhale_database_url" echo " - Custom PostgreSQL configuration: $funkwhale_database_url"
fi fi
if [ "$funkwhale_disable_django_admin" = "true"]; then
echo "- Disabled access to API admin dashboard"
fi
if [ "$is_dry_run" = "true" ]; then if [ "$is_dry_run" = "true" ]; then
echo "Running with dry-run mode, your system will be not be modified (apart from Ansible installation)." echo "Running with dry-run mode, your system will be not be modified (apart from Ansible installation)."
...@@ -255,6 +260,11 @@ EOF ...@@ -255,6 +260,11 @@ EOF
[funkwhale_servers] [funkwhale_servers]
127.0.0.1 ansible_connection=local ansible_python_interpreter=/usr/bin/python3 127.0.0.1 ansible_connection=local ansible_python_interpreter=/usr/bin/python3
EOF EOF
if [ "$funkwhale_disable_django_admin" = "true" ]; then
cat <<EOF >>playbook.yml
funkwhale_disable_django_admin: true
EOF
fi
echo "[2/$total_steps] Downloading Funkwhale playbook dependencies" echo "[2/$total_steps] Downloading Funkwhale playbook dependencies"
$ansible_bin_path/ansible-galaxy install -r requirements.yml -f $ansible_bin_path/ansible-galaxy install -r requirements.yml -f
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment