Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lerk
ansible
Commits
b80910f9
Commit
b80910f9
authored
Aug 29, 2019
by
Lerk
Browse files
Add option to disable access to api admin dashboard to install script
parent
0163d38b
Changes
1
Hide whitespace changes
Inline
Side-by-side
install.sh
View file @
b80910f9
...
...
@@ -89,10 +89,12 @@ setup() {
read
-p
"Enter your redis configuration, (e.g redis://127.0.0.1:6379/0): "
funkwhale_redis_url
funkwhale_systemd_after
=
"funkwhale_systemd_after: "
fi
yesno_prompt funkwhale_disable_django_admin
'Disable access to API admin dashboard?'
'no'
else
funkwhale_nginx_managed
=
"true"
funkwhale_database_managed
=
"true"
funkwhale_redis_managed
=
"true"
funkwhale_disable_django_admin
=
"false"
fi
...
...
@@ -112,6 +114,9 @@ setup() {
if
[
"
$funkwhale_database_managed
"
=
"false"
]
;
then
echo
" - Custom PostgreSQL configuration:
$funkwhale_database_url
"
fi
if
[
"
$funkwhale_disable_django_admin
"
=
"true"
]
;
then
echo
"- Disabled access to API admin dashboard"
fi
if
[
"
$is_dry_run
"
=
"true"
]
;
then
echo
"Running with dry-run mode, your system will be not be modified (apart from Ansible installation)."
...
...
@@ -255,6 +260,11 @@ EOF
[funkwhale_servers]
127.0.0.1 ansible_connection=local ansible_python_interpreter=/usr/bin/python3
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"
$ansible_bin_path
/ansible-galaxy
install
-r
requirements.yml
-f
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment