Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
ansible
Manage
Activity
Members
Labels
Plan
Issues
13
Issue boards
Milestones
Wiki
Code
Merge requests
1
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
funkwhale
ansible
Commits
55627515
Verified
Commit
55627515
authored
5 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Added reconfigure script
parent
22283811
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
install.sh
+13
-5
13 additions, 5 deletions
install.sh
upgrade.sh
+8
-0
8 additions, 0 deletions
upgrade.sh
with
21 additions
and
5 deletions
install.sh
+
13
−
5
View file @
55627515
...
...
@@ -205,7 +205,8 @@ do_install() {
fi
echo
" - You can run management commands by calling
$base_path
/manage, e.g
$base_path
/manage import_files"
echo
' - To upgrade to the latest version, run: sh -c "$(curl -sSL https://get.funkwhale.audio/upgrade.sh)"'
echo
" - Edit your pod configuration in
$ansible_conf_path
/playbook.yml and apply the changes with: sudo
$ansible_conf_path
/reconfigure"
echo
' - To upgrade to the latest version, run: sudo sh -c "$(curl -sSL https://get.funkwhale.audio/upgrade.sh)"'
fi
}
...
...
@@ -240,12 +241,19 @@ EOF
funkwhale_nginx_managed:
$funkwhale_nginx_managed
funkwhale_redis_managed:
$funkwhale_redis_managed
funkwhale_database_managed:
$funkwhale_database_managed
# Add any environment variables to the generated .env by uncommenting and editing the lines below
# then execute ./reconfigure
# funkwhale_env_vars:
# - "EMAIL_CONFIG=smtp+tls://user@:password@youremail.host:587"
# - "MYCUSTOM_ENV_VAR=test"
EOF
if
[
"
$funkwhale_database_managed
"
=
"false"
]
;
then
cat
<<
EOF
>>playbook.yml
funkwhale_database_url:
$funkwhale_database_url
cat
<<
EOF
>reconfigure
#!/bin/sh
# reapply playbook with existing parameter
# Useful if you changed some variables in playbook.yml
exec
$ansible_bin_path
/ansible-playbook -i
$ansible_conf_path
/inventory.ini
$ansible_conf_path
/playbook.yml -u root
$ansible_flags
EOF
fi
chmod
+x ./reconfigure
if
[
"
$funkwhale_redis_managed
"
=
"false"
]
;
then
cat
<<
EOF
>>playbook.yml
funkwhale_redis_url:
$funkwhale_redis_url
...
...
This diff is collapsed.
Click to expand it.
upgrade.sh
+
8
−
0
View file @
55627515
...
...
@@ -100,6 +100,14 @@ do_upgrade() {
echo
"
$playbook_command
"
$playbook_command
fi
echo
"[3/
$total_steps
] Adding
$ansible_conf_path
/reconfigure script"
cat
<<
EOF
>
$ansible_conf_path
/reconfigure
#!/bin/sh
# reapply playbook with existing parameter
# Useful if you changed some variables in playbook.yml
exec
$ansible_bin_path
/ansible-playbook -i
$ansible_conf_path
/inventory.ini
$ansible_conf_path
/playbook.yml -u root
$ansible_flags
EOF
chmod
+x
$ansible_conf_path
/reconfigure
echo
echo
"Upgrade to
$funkwhale_version
complete!"
exit
...
...
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