hobos: only touch sql options on initial deployment (#5941)
This commit is contained in:
parent
20a723c896
commit
744c4d6b52
|
@ -58,15 +58,17 @@ class CmdCheckHobos(Command):
|
|||
service.get('template_name'))
|
||||
if os.path.exists(skeleton_filepath):
|
||||
pub.import_zip(file(skeleton_filepath))
|
||||
|
||||
new_site = True
|
||||
else:
|
||||
print 'updating instance in', pub.app_dir
|
||||
pub.set_config()
|
||||
new_site = False
|
||||
|
||||
self.configure_site_options(service, pub)
|
||||
self.update_configuration(service, pub)
|
||||
self.configure_authentication_methods(service, pub)
|
||||
self.configure_sql(service, pub)
|
||||
if new_site:
|
||||
self.configure_sql(service, pub)
|
||||
|
||||
def update_configuration(self, service, pub):
|
||||
if not pub.cfg.get('misc'):
|
||||
|
|
Loading…
Reference in New Issue