mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-15 09:00:26 +08:00
Argh.
This commit is contained in:
parent
583cf67f86
commit
2aca3e0d30
@ -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
|
||||
|
10
data/Dockerfiles/sogo/docker-entrypoint.sh
Executable file
10
data/Dockerfiles/sogo/docker-entrypoint.sh
Executable 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 "$@"
|
Loading…
Reference in New Issue
Block a user