Changeset 6173 for trunk/INSTALL/arquivos/scripts
- Timestamp:
- 05/14/12 14:30:37 (12 years ago)
- Location:
- trunk/INSTALL/arquivos/scripts
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/INSTALL/arquivos/scripts/aux.sh
r5851 r6173 39 39 # Substitui o '.' por ',dc=' 40 40 LDAP_DN=`echo "dc=$DOMAIN" | sed 's/\./,dc=/g'` 41 # Substitui qualquer coisa a pos 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'` 43 43 fi 44 44 } -
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 -
trunk/INSTALL/arquivos/scripts/http.sh
r6080 r6173 12 12 # Copia o Expresso para o diretório indicado como parâmetro 13 13 echo "Copiando arquivos do Expresso Livre..." 14 cp -r `dirname $PWD`$DIR_EXPRESSO14 cp -r "`dirname $PWD`" $DIR_EXPRESSO 15 15 # Copia o mkntpwd para o home do Expresso 16 16 mkdir -p /home/expressolivre … … 39 39 config_api () 40 40 { 41 # Para pegar a organizacao e principalmente o LDAP_D C41 # Para pegar a organizacao e principalmente o LDAP_DN 42 42 get_org 43 43 # A principio so sera necessario configurar o LDAP 44 44 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 46 47 } 47 48 -
trunk/INSTALL/arquivos/scripts/ini.sh
r6075 r6173 11 11 12 12 # 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; } 14 14 15 15 # Verifica se o dialog foi instalado corretamente … … 59 59 chkconfig --del sendmail 60 60 yum -y erase sendmail 61 # Desativa o iptables 62 service iptables stop 63 chkconfig --del iptables 61 64 62 65 # 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; } 64 67 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; } 66 69 67 70 # Verifica se o dialog foi instalado corretamente -
trunk/INSTALL/arquivos/scripts/ldap.sh
r6080 r6173 19 19 20 20 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.ldif21 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 22 22 slapadd -v -f $2 -l /tmp/expresso.ldif 23 23 # TODO: E mesmo necessario rodar o slapindex ou o slapadd ja indexa? -
trunk/INSTALL/arquivos/scripts/smtp.sh
r5871 r6173 14 14 postmap /etc/postfix/expresso-dominios 15 15 postmap /etc/postfix/transport 16 adduser postfix mail 16 # Adiciona o grupo mail ao usuarios postfix 17 usermod -a -G mail postfix 17 18 } 18 19
Note: See TracChangeset
for help on using the changeset viewer.