mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
diaspora: Don't enable service until domain name is set
- This avoids an issue where it would try to enable the apache conf possibly before it is generated. - Added an explicit enable statement since it was missing. Reviewed-by: Joseph Nuthalpati <njoseph@thoughtworks.com>
This commit is contained in:
1 parent
78df88ca85
commit
9fabb7b903
3 files changed
+11
-10
No files matched your search
+3
-3
@@ -62,7 +62,6 @@ def subcommand_setup(arguments):
|
||||
dnf.write(domain_name)
|
||||
set_domain_name(domain_name)
|
||||
uncomment_user_registrations()
|
||||
action_utils.service_start('diaspora')
|
||||
action_utils.webserver_enable('diaspora-plinth')
|
||||
|
||||
|
||||
@@ -86,9 +85,10 @@ def set_domain_name(domain_name):
|
||||
'http://{}:3000'.format(domain_name))
|
||||
aug.save()
|
||||
|
||||
diaspora.generate_apache_configuration('/etc/apache2/conf-available/diaspora-plinth.conf',
|
||||
domain_name)
|
||||
diaspora.generate_apache_configuration(
|
||||
'/etc/apache2/conf-available/diaspora-plinth.conf', domain_name)
|
||||
|
||||
action_utils.service_enable('diaspora')
|
||||
action_utils.service_start('diaspora')
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user