2016-12-14 15:53:00 +01:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
2016-12-17 13:36:59 +01:00
|
|
|
AS_SOGO="gosu sogo"
|
2016-12-14 15:53:00 +01:00
|
|
|
|
2016-12-17 20:31:59 +01:00
|
|
|
${AS_SOGO} defaults write sogod SOGoUserSources "({type = sql;id = directory;viewURL = mysql://${DBUSER}:${DBPASS}@mysql:3306/${DBNAME}/sogo_view;canAuthenticate = YES;isAddressBook = YES;displayName = \"GAL\";MailFieldNames = (aliases, ad_aliases, senderacl);userPasswordAlgorithm = ssha256;})"
|
2016-12-17 13:36:59 +01:00
|
|
|
${AS_SOGO} defaults write sogod SOGoProfileURL "mysql://${DBUSER}:${DBPASS}@mysql:3306/${DBNAME}/sogo_user_profile"
|
|
|
|
${AS_SOGO} defaults write sogod OCSFolderInfoURL "mysql://${DBUSER}:${DBPASS}@mysql:3306/${DBNAME}/sogo_folder_info"
|
|
|
|
${AS_SOGO} defaults write sogod OCSEMailAlarmsFolderURL "mysql://${DBUSER}:${DBPASS}@mysql:3306/${DBNAME}/sogo_alarms_folder"
|
|
|
|
${AS_SOGO} defaults write sogod OCSSessionsFolderURL "mysql://${DBUSER}:${DBPASS}@mysql:3306/${DBNAME}/sogo_sessions_folder"
|
2016-12-19 12:24:39 +01:00
|
|
|
${AS_SOGO} defaults write sogod OCSCacheFolderURL "mysql://${DBUSER}:${DBPASS}@mysql:3306/${DBNAME}/sogo_cache_folder"
|
|
|
|
${AS_SOGO} defaults write sogod OCSStoreURL "mysql://${DBUSER}:${DBPASS}@mysql:3306/${DBNAME}/sogo_store"
|
|
|
|
${AS_SOGO} defaults write sogod OCSAclURL "mysql://${DBUSER}:${DBPASS}@mysql:3306/${DBNAME}/sogo_acl"
|
2016-12-18 12:52:32 +01:00
|
|
|
${AS_SOGO} defaults write sogod SOGoTimeZone "${TZ}"
|
2016-12-17 13:36:59 +01:00
|
|
|
|
2016-12-18 12:52:32 +01:00
|
|
|
exec "$@"
|