mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
zoph: Don't fail setup if mysql installed but not running
Tests: - Install wordpress and disable it. This will install mysql and disable it. Then install zoph installation should succeed. - Disable zoph and re-run setup. Setup should succeed. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
a488ee4d43
commit
d79ba1cede
@ -42,16 +42,20 @@ def _zoph_configure(key, value):
|
||||
|
||||
@privileged
|
||||
def setup():
|
||||
"""Setup Zoph configuration."""
|
||||
_zoph_configure('import.enable', 'true')
|
||||
_zoph_configure('import.upload', 'true')
|
||||
_zoph_configure('import.rotate', 'true')
|
||||
_zoph_configure('path.unzip', 'unzip')
|
||||
_zoph_configure('path.untar', 'tar xvf')
|
||||
_zoph_configure('path.ungz', 'gunzip')
|
||||
"""Setup Zoph configuration.
|
||||
|
||||
# Maps using OpenStreetMap is enabled by default.
|
||||
_zoph_configure('maps.provider', 'osm')
|
||||
May be called when app is disabled.
|
||||
"""
|
||||
with action_utils.service_ensure_running('mysql'):
|
||||
_zoph_configure('import.enable', 'true')
|
||||
_zoph_configure('import.upload', 'true')
|
||||
_zoph_configure('import.rotate', 'true')
|
||||
_zoph_configure('path.unzip', 'unzip')
|
||||
_zoph_configure('path.untar', 'tar xvf')
|
||||
_zoph_configure('path.ungz', 'gunzip')
|
||||
|
||||
# Maps using OpenStreetMap is enabled by default.
|
||||
_zoph_configure('maps.provider', 'osm')
|
||||
|
||||
|
||||
def _get_db_name():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user