Changeset 7293 for branches/2.4/INSTALL/arquivos/scripts/bd.sh
- Timestamp:
- 09/25/12 09:03:46 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/INSTALL/arquivos/scripts/bd.sh
r6261 r7293 18 18 19 19 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" 23 22 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 24 23 … … 31 30 create_db () 32 31 { 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; } 35 34 su - postgres -c 'psql -f /tmp/expresso.dump expresso' 36 35 } … … 91 90 92 91 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} 95 93 /etc/init.d/postgresql start 96 94
Note: See TracChangeset
for help on using the changeset viewer.