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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 
Note: See TracChangeset for help on using the changeset viewer.