Ignore:
Timestamp:
09/21/12 18:03:20 (12 years ago)
Author:
wmerlotto
Message:

Ticket #3123 - Correcoes auxiliares em todo o instalador

File:
1 edited

Legend:

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

    r6261 r7278  
    1818         
    1919        rm -rf $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" 
    22         #su - postgres -c "env LANG=LATIN1 initdb --locale=pt_BR.iso88591 --encoding=LATIN1 -D $DIR_PG" 
     20        su - postgres -c "env LC_ALL=C initdb --encoding=LATIN1 -D $DIR_PG" 
     21        #su - postgres -c "env LANG=pt_BR.ISO-8859-1 initdb --encoding=LATIN1 -D $DIR_PG" 
    2322        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 
    2423         
     
    3130create_db () 
    3231{ 
    33         su - postgres -c 'dropdb expresso'  || { echo "Banco expresso não existia. [OK]"; } 
    34         su - postgres -c 'createdb -E LATIN1 expresso'  || { echo "Falha na criação do banco expresso."; exit 1; } 
     32        su - postgres -c 'dropdb expresso'  || { echo "Banco expresso nao existia. [OK]"; } 
     33        su - postgres -c 'createdb -E LATIN1 expresso'  || { echo "Falha na criacao do banco expresso."; exit 1; } 
    3534        su - postgres -c 'psql -f /tmp/expresso.dump expresso' 
    3635} 
     
    9190 
    9291        bd $DIR_PG $PG_CONF $PG_HBA $DIR_CONF 
    93         #rm -f $DIR_PG/postgresql.conf 
    94         #rm -f $DIR_PG/pg_hba.conf 
     92        #rm -f $DIR_PG/{postgresql.conf,pg_hba.conf} 
    9593        /etc/init.d/postgresql start 
    9694 
Note: See TracChangeset for help on using the changeset viewer.