master
andryyy 2016-12-14 15:53:00 +01:00
parent 583cf67f86
commit 2aca3e0d30
2 changed files with 14 additions and 2 deletions

View File

@ -10,11 +10,13 @@ RUN apt-get update \
&& apt-get update \
&& apt-get -y --force-yes install sogo sogo-activesync
ADD gnustep_defaults.sh /tmp/gnustep_defaults.sh
RUN chmod +x /tmp/gnustep_defaults.sh && /tmp/gnustep_defaults.sh
USER sogo
COPY ./docker-entrypoint.sh /
USER sogo
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["/usr/sbin/sogod"]
EXPOSE 20000

View File

@ -0,0 +1,10 @@
#!/bin/bash
set -e
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;\}\)"
defaults write sogod SOGoProfileURL "mysql://${DBUSER}:${DBPASS}@mysql:3306/${DBNAME}/sogo_user_profile"
defaults write sogod OCSFolderInfoURL "mysql://${DBUSER}:${DBPASS}@mysql:3306/${DBNAME}/sogo_folder_info"
defaults write sogod OCSEMailAlarmsFolderURL "mysql://${DBUSER}:${DBPASS}@mysql:3306/${DBNAME}/sogo_alarms_folder"
defaults write sogod OCSSessionsFolderURL "mysql://${DBUSER}:${DBPASS}@mysql:3306/${DBNAME}/sogo_sessions_folder"
exec "$@"