radicale: Only set hosts for radicale 1.x

Not used with uwsgi, which is enabled for radicale 2.x.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy 2019-01-23 06:12:39 -05:00 committed by Sunil Mohan Adapa
parent dfd46281c5
commit 15094525b1
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -60,10 +60,10 @@ def subcommand_setup(_):
if current_version and current_version < radicale.VERSION_2:
aug.set('/files' + DEFAULT_FILE + '/ENABLE_RADICALE', 'yes')
aug.set('/files' + CONFIG_FILE + '/server/hosts',
'127.0.0.1:5232, [::1]:5232')
aug.set('/files' + CONFIG_FILE + '/rights/type', 'owner_only')
if current_version and current_version < radicale.VERSION_2:
aug.set('/files' + CONFIG_FILE + '/server/hosts',
'127.0.0.1:5232, [::1]:5232')
aug.set('/files' + CONFIG_FILE + '/server/base_prefix', '/radicale/')
aug.set('/files' + CONFIG_FILE + '/well-known/caldav',
'/radicale/%(user)s/caldav/')