Fix SOGo Dockerfile

master
andryyy 2016-12-14 09:48:55 +01:00
parent 5d410c1a39
commit 568d73cf4d
1 changed files with 16 additions and 6 deletions

View File

@ -10,12 +10,22 @@ RUN apt-get update \
&& apt-get update \ && apt-get update \
&& apt-get -y --force-yes install sogo sogo-activesync && apt-get -y --force-yes install sogo sogo-activesync
RUN defaults write sogod SOGoUserSources '({type = sql;id = directory;viewURL = mysql://${DBUSER}:${DBPASS}@${DBHOST}:3306/${DBNAME}/sogo_view;canAuthenticate = YES;isAddressBook = YES;displayName = \"GAL\";MailFieldNames = (aliases, ad_aliases, senderacl);userPasswordAlgorithm = ssha256;})' echo "<?xml version="1.0" encoding="UTF-8"?> \n\
RUN defaults write sogod SOGoProfileURL 'mysql://${DBUSER}:${DBPASS}@${DBHOST}:3306/${DBNAME}/sogo_user_profile' <!DOCTYPE plist PUBLIC "-//GNUstep//DTD plist 0.9//EN" "http://www.gnustep.org/plist-0_9.xml">\n\
RUN defaults write sogod OCSFolderInfoURL 'mysql://${DBUSER}:${DBPASS}@${DBHOST}:3306/${DBNAME}/sogo_folder_info' <plist version="0.9">\n\
RUN defaults write sogod OCSEMailAlarmsFolderURL 'mysql://${DBUSER}:${DBPASS}@${DBHOST}:3306/${DBNAME}/sogo_alarms_folder' <dict>\n\
RUN defaults write sogod OCSSessionsFolderURL 'mysql://${DBUSER}:${DBPASS}@${DBHOST}:3306/${DBNAME}/sogo_sessions_folder' <key>OCSEMailAlarmsFolderURL</key>\n\
<string>mysql://${DBUSER}:${DBPASS}@${DBHOST}:3306/${DBNAME}/sogo_alarms_folder</string>\n\
<key>OCSFolderInfoURL</key>\n\
<string>mysql://${DBUSER}:${DBPASS}@${DBHOST}:3306/${DBNAME}/sogo_folder_info</string>\n\
<key>OCSSessionsFolderURL</key>\n\
<string>mysql://${DBUSER}:${DBPASS}@${DBHOST}:3306/${DBNAME}/sogo_sessions_folder</string>\n\
<key>SOGoProfileURL</key>\n\
<string>mysql://${DBUSER}:${DBPASS}@${DBHOST}:3306/${DBNAME}/sogo_user_profile</string>\n\
<key>SOGoUserSources</key>\n\
<string>\(\{type = sql;id = directory;viewURL = mysql://${DBUSER}:${DBPASS}@${DBHOST}:3306/${DBNAME}/sogo_view;canAuthenticate = YES;isAddressBook = YES;displayName = \&quot;GAL\&quot;;MailFieldNames = (aliases, ad_aliases, senderacl);userPasswordAlgorithm = ssha256;\}\)</string>\n\
</dict>\n\
</plist>" > /var/lib/sogo/GNUstep/Defaults/sogod.plist
USER sogo USER sogo