Changeset 6173 for trunk/INSTALL/arquivos/scripts/bd.sh
- Timestamp:
- 05/14/12 14:30:37 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/INSTALL/arquivos/scripts/bd.sh
r5871 r6173 18 18 19 19 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" 21 22 #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.dump23 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 23 24 24 25 25 26 cp -f $PG_CONF $DIR_CONF/ 26 27 cp -f $PG_HBA $DIR_CONF/ 27 }28 29 bd_ubuntu1110 () {30 DIR_PG=$131 PG_CONF=$232 PG_HBA=$333 DIR_CONF=$434 get_org35 get_pass36 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.dump40 41 cp -f $PG_CONF $DIR_CONF/42 cp -f $PG_HBA $DIR_CONF/43 28 } 44 29 … … 105 90 chmod -R 770 $DIR_PG 106 91 107 bd _ubuntu1110$DIR_PG $PG_CONF $PG_HBA $DIR_CONF92 bd $DIR_PG $PG_CONF $PG_HBA $DIR_CONF 108 93 #rm -f $DIR_PG/postgresql.conf 109 94 #rm -f $DIR_PG/pg_hba.conf
Note: See TracChangeset
for help on using the changeset viewer.