Ignore:
Timestamp:
05/14/12 14:30:37 (12 years ago)
Author:
wmerlotto
Message:

Ticket #2557 - Correcoes para melhorar o instalador e para deixar o Expresso completamente funcional.

Location:
trunk/INSTALL/arquivos/scripts
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/INSTALL/arquivos/scripts/aux.sh

    r5851 r6173  
    3939                # Substitui o '.' por ',dc=' 
    4040                LDAP_DN=`echo "dc=$DOMAIN" | sed 's/\./,dc=/g'` 
    41                 # Substitui qualquer coisa apos o primeiro '.' por 'nada' 
    42                 LDAP_DC=`echo $DOMAIN | sed 's/\..*//g'` 
     41                # Substitui qualquer coisa antes do ultimo '.' por 'nada' 
     42                LDAP_DC=`echo $DOMAIN | sed 's/.*\.//g'` 
    4343        fi 
    4444} 
  • trunk/INSTALL/arquivos/scripts/bd.sh

    r5871 r6173  
    1818         
    1919        rm -rf $DIR_PG* 
    20         su - postgres -c "export LANG=pt_BR.ISO-8859-1; initdb -E latin1 -D $DIR_PG" 
     20        su - postgres -c "env LANG=pt_BR.ISO-8859-1 initdb --encoding=LATIN1 -D $DIR_PG" 
     21        #su - postgres -c "export LANG=pt_BR.ISO-8859-1; initdb --encoding=LATIN1 -D $DIR_PG" 
    2122        #su - postgres -c "env LANG=LATIN1 initdb --locale=pt_BR.iso88591 --encoding=LATIN1 -D $DIR_PG" 
    22         sed -e "s/LDAP_DN/$LDAP_DN/g" -e "s/LDAP_PWD/$LDAP_PWD/g" -e "s/ORG/$ORG/g" -e "s/DOMAIN/$DOMAIN/g" $ARQS/expresso.dump > /tmp/expresso.dump 
     23        sed -e "s/LDAP_DN/$LDAP_DN/g" -e "s/LDAP_PWD/$LDAP_PWD/g" -e "s/ou=ORG/ou=$ORG/g" -e "s/DOMAIN/$DOMAIN/g" $ARQS/expresso.dump > /tmp/expresso.dump 
    2324         
    2425 
    2526        cp -f $PG_CONF $DIR_CONF/ 
    2627        cp -f $PG_HBA $DIR_CONF/ 
    27 } 
    28  
    29 bd_ubuntu1110 () { 
    30         DIR_PG=$1 
    31         PG_CONF=$2 
    32         PG_HBA=$3 
    33         DIR_CONF=$4 
    34         get_org 
    35         get_pass 
    36  
    37         rm -rf $DIR_PG* 
    38         su - postgres -c "env LANG=LATIN1 initdb --locale=pt_BR.iso88591 --encoding=LATIN1 -D $DIR_PG" 
    39         sed -e "s/LDAP_DN/$LDAP_DN/g" -e "s/LDAP_PWD/$LDAP_PWD/g" -e "s/ORG/$ORG/g" -e "s/DOMAIN/$DOMAIN/g" $ARQS/expresso.dump > /tmp/expresso.dump 
    40  
    41         cp -f $PG_CONF $DIR_CONF/ 
    42         cp -f $PG_HBA $DIR_CONF/ 
    4328} 
    4429 
     
    10590        chmod -R 770 $DIR_PG 
    10691 
    107         bd_ubuntu1110 $DIR_PG $PG_CONF $PG_HBA $DIR_CONF 
     92        bd $DIR_PG $PG_CONF $PG_HBA $DIR_CONF 
    10893        #rm -f $DIR_PG/postgresql.conf 
    10994        #rm -f $DIR_PG/pg_hba.conf 
  • trunk/INSTALL/arquivos/scripts/http.sh

    r6080 r6173  
    1212        # Copia o Expresso para o diretório indicado como parâmetro 
    1313        echo "Copiando arquivos do Expresso Livre..." 
    14         cp -r `dirname $PWD` $DIR_EXPRESSO 
     14        cp -r "`dirname $PWD`" $DIR_EXPRESSO 
    1515        # Copia o mkntpwd para o home do Expresso 
    1616        mkdir -p /home/expressolivre 
     
    3939config_api () 
    4040{ 
    41         # Para pegar a organizacao e principalmente o LDAP_DC 
     41        # Para pegar a organizacao e principalmente o LDAP_DN 
    4242        get_org 
    4343        # A principio so sera necessario configurar o LDAP 
    4444        ARQ_LDAP="../prototype/config/OpenLDAP.srv" 
    45         cat $ARQ_LDAP | sed -e "s/LDAP_DC/$LDAP_DC/g" > $ARQ_LDAP 
     45        mv $ARQ_LDAP "$ARQ_LDAP.orig" 
     46        cat "$ARQ_LDAP.orig" | sed -e "s/LDAP_DN/$LDAP_DN/g" > $ARQ_LDAP 
    4647} 
    4748 
  • trunk/INSTALL/arquivos/scripts/ini.sh

    r6075 r6173  
    1111 
    1212        # Instala o dialog e debconf-utils 
    13         apt-get -y install debconf-utils openssl ssl-cert vim dialog || { echo "Falha ao instalar alguns pacotes!" ; exit 1; } 
     13        apt-get -y install debconf-utils openssl ssl-cert vim dialog rsync || { echo "Falha ao instalar alguns pacotes!" ; exit 1; } 
    1414 
    1515        # Verifica se o dialog foi instalado corretamente 
     
    5959        chkconfig --del sendmail 
    6060        yum -y erase sendmail 
     61        # Desativa o iptables 
     62        service iptables stop 
     63        chkconfig --del iptables 
    6164 
    6265        # Realiza o update do YUM 
    63         yum check-update || { echo "Falha ao atualizar o YUM!"; exit 1; } 
     66        #yum check-update || { echo "Falha ao atualizar o YUM!"; exit 1; } 
    6467 
    65         yum -y install openssl vim dialog || { echo "Falha ao instalar alguns pacotes!!" ; exit 1; } 
     68        yum -y install openssl vim dialog rsync || { echo "Falha ao instalar alguns pacotes!!" ; exit 1; } 
    6669 
    6770        # Verifica se o dialog foi instalado corretamente 
  • trunk/INSTALL/arquivos/scripts/ldap.sh

    r6080 r6173  
    1919         
    2020        sed -e "s/LDAP_DN/$LDAP_DN/g" -e "s|LDAP_PWD_MD5|$LDAP_PWD_MD5|g" $1 > $2 
    21         sed -e "s/LDAP_DN/$LDAP_DN/g" -e "s|LDAP_PWD_MD5|$LDAP_PWD_MD5|g" -e "s/ORG/$ORG/g" -e "s/DOMAIN/$DOMAIN/g" -e "s/LDAP_DC/$LDAP_DC/g" $ARQS/expresso.ldif > /tmp/expresso.ldif 
     21        sed -e "s/LDAP_DN/$LDAP_DN/g" -e "s|LDAP_PWD_MD5|$LDAP_PWD_MD5|g" -e "s/ORG/$ORG/g" -e "s/DOMAIN/$DOMAIN/g" -e "s/LDAP_DC/$ORG/g" $ARQS/expresso.ldif > /tmp/expresso.ldif 
    2222        slapadd -v -f $2 -l /tmp/expresso.ldif 
    2323        # TODO: E mesmo necessario rodar o slapindex ou o slapadd ja indexa? 
  • trunk/INSTALL/arquivos/scripts/smtp.sh

    r5871 r6173  
    1414        postmap /etc/postfix/expresso-dominios 
    1515        postmap /etc/postfix/transport 
    16         adduser postfix mail 
     16        # Adiciona o grupo mail ao usuarios postfix 
     17        usermod -a -G mail postfix 
    1718} 
    1819 
Note: See TracChangeset for help on using the changeset viewer.