Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lerk
ansible
Commits
b80910f9
Commit
b80910f9
authored
5 years ago
by
Lerk
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install.sh
+10
-0
10 additions, 0 deletions
install.sh
with
10 additions
and
0 deletions
install.sh
+
10
−
0
View file @
b80910f9
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment