Revision 5797,
1.3 KB
checked in by wmerlotto, 12 years ago
(diff) |
Ticket #2557 - Primeira versao do novo instalador do Expresso
|
Rev | Line | |
---|
[5797] | 1 | |
---|
| 2 | # Servico IMAP (Cyrus-IMAP) |
---|
| 3 | |
---|
| 4 | imap () { |
---|
| 5 | get_org |
---|
| 6 | |
---|
| 7 | cp $ARQS/usr/local/bin/cyradm_expresso /usr/local/bin |
---|
| 8 | sed -e "s/LDAP_DN/$LDAP_DN/g" $ARQS/saslauthd.conf > /etc/saslauthd.conf |
---|
| 9 | } |
---|
| 10 | |
---|
| 11 | create_mbox () |
---|
| 12 | { |
---|
| 13 | get_pass |
---|
| 14 | service slapd stop |
---|
| 15 | sleep 5 |
---|
| 16 | service slapd start |
---|
| 17 | ./$ARQS/scripts/cyrus.pl $LDAP_PWD |
---|
| 18 | } |
---|
| 19 | |
---|
| 20 | imap_debian () |
---|
| 21 | { |
---|
| 22 | imap |
---|
| 23 | } |
---|
| 24 | |
---|
| 25 | imap_debian-squeeze () |
---|
| 26 | { |
---|
| 27 | apt-get -y install cyrus-admin-2.2 cyrus-clients-2.2 cyrus-common-2.2 cyrus-doc-2.2 cyrus-imapd-2.2 \ |
---|
| 28 | libcyrus-imap-perl22 libsasl2-modules sasl2-bin libmail-imapclient-perl \ |
---|
| 29 | libparse-recdescent-perl libterm-readkey-perl libterm-readline-perl-perl |
---|
| 30 | |
---|
| 31 | SQUEEZE=debian/squeeze/etc |
---|
| 32 | cp $SQUEEZE/imapd.conf /etc/ |
---|
| 33 | cp $SQUEEZE/cyrus.conf /etc/ |
---|
| 34 | cp $SQUEEZE/default/saslauthd /etc/default/ |
---|
| 35 | |
---|
| 36 | imap_debian |
---|
| 37 | |
---|
| 38 | /etc/init.d/saslauthd restart |
---|
| 39 | # TODO: e necessario colocar para inicializar automaticamente? |
---|
| 40 | sleep 4 |
---|
| 41 | /etc/init.d/cyrus2.2 restart |
---|
| 42 | |
---|
| 43 | create_mbox |
---|
| 44 | } |
---|
| 45 | |
---|
| 46 | imap_rhel () |
---|
| 47 | { |
---|
| 48 | yum -y install cyrus-imapd cyrus-imapd-perl cyrus-imapd-utils cyrus-sasl cyrus-sasl-ldap cyrus-sasl-plain perl-IO-Socket-SSL |
---|
| 49 | |
---|
| 50 | imap |
---|
| 51 | } |
---|
| 52 | |
---|
| 53 | imap_rhel6 () |
---|
| 54 | { |
---|
| 55 | imap_rhel |
---|
| 56 | |
---|
| 57 | RHEL6=rhel/6/etc |
---|
| 58 | cp $RHEL6/imapd.conf /etc/ |
---|
| 59 | cp $RHEL6/cyrus.conf /etc/ |
---|
| 60 | cp $RHEL6/sysconfig/saslauthd /etc/sysconfig/ |
---|
| 61 | |
---|
| 62 | service saslauthd restart |
---|
| 63 | chkconfig saslauthd on |
---|
| 64 | sleep 4 |
---|
| 65 | service cyrus-imapd restart |
---|
| 66 | chkconfig cyrus-imapd on |
---|
| 67 | |
---|
| 68 | create_mbox |
---|
| 69 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.