Changeset 745 for trunk


Ignore:
Timestamp:
03/20/09 18:48:03 (12 years ago)
Author:
niltonneto
Message:

Resolve #471

Location:
trunk/doc-expressolivre/debian
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc-expressolivre/debian/arqs-conf/etc/postgresql/8.3/main/postgresql.conf

    r685 r745  
    7474 
    7575#authentication_timeout = 1min          # 1s-600s 
    76 ssl = true                              # (change requires restart) 
     76ssl = false                             # (change requires restart) 
    7777#ssl_ciphers = 'ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH'      # allowed SSL ciphers 
    7878                                        # (change requires restart) 
  • trunk/doc-expressolivre/debian/expressoInstallDebian-lenny.sh

    r685 r745  
    5151#.....................................................................       
    5252 
    53 apt-get install -y apache2-mpm-prefork libapache2-mod-php5 apache2-utils php5 php5-common php5-dev php5-gd php5-imap php5-ldap php5-pgsql php5-cgi php5-cli postgresql postgresql-common postgresql-client postgresql-client-common slapd ldap-utils db4.2-util cyrus-admin-2.2 cyrus-clients-2.2 cyrus-common-2.2 cyrus-doc-2.2 cyrus-imapd-2.2 libcyrus-imap-perl22 postfix postfix-ldap libsasl2-2 libsasl2-modules sasl2-bin nmap vim libmail-imapclient-perl libparse-recdescent-perl libterm-readkey-perl libterm-readline-perl-perl zip unzip graphviz lsb-base openssl ssl-cert || { echo "Impossível continuar, erro no nome dos pacotes"; exit 1;} 
     53apt-get install -y apache2-mpm-prefork libapache2-mod-php5 apache2-utils php5 php5-common php5-dev php5-gd php5-imap php5-ldap php5-pgsql php5-cgi php5-cli slapd ldap-utils db4.2-util cyrus-admin-2.2 cyrus-clients-2.2 cyrus-common-2.2 cyrus-doc-2.2 cyrus-imapd-2.2 libcyrus-imap-perl22 postfix postfix-ldap libsasl2-2 libsasl2-modules sasl2-bin nmap vim libmail-imapclient-perl libparse-recdescent-perl libterm-readkey-perl libterm-readline-perl-perl zip unzip graphviz lsb-base openssl ssl-cert || { echo "Impossível continuar, erro no nome dos pacotes"; exit 1; } 
    5454 
    5555############################################################################################ 
     
    6060LDAP_PWD_MD5=`php ./arqs-conf/regexp.php $LDAP_PWD_MD5` 
    6161HEADER_PWD=`php ./arqs-conf/pass.php $LDAP_PWD` 
    62 ############################################################################################ 
    63 # POSTGRES 
    64  
    65 #parando o serviço e fazendo backup 
    66 /etc/init.d/postgresql-8.3 stop 
    67 mv /var/lib/postgresql/8.3/main /var/lib/postgresql/8.3/main_backup_$(date +%s) 
    68  
    69 #alterando o proprietário do diretório temporariamente 
    70 chown postgres\: /var/lib/postgresql/8.3 
    71  
    72 su - postgres -c 'export LANG=pt_BR.ISO-8859-1;/usr/lib/postgresql/8.3/bin/initdb -E latin1 -D /var/lib/postgresql/8.3/main' 
    73  
    74 #restaurando o proprietário do diretório 
    75 chown root\: /var/lib/postgresql/8.3 
    76  
    77 #criando links simbólicos necessários 
    78 ln -s /etc/ssl/certs/ssl-cert-snakeoil.pem /var/lib/postgresql/8.3/main/server.crt 
    79 ln -s /etc/ssl/private/ssl-cert-snakeoil.key /var/lib/postgresql/8.3/main/server.key 
    80 ln -s /etc/postgresql-common/root.crt /var/lib/postgresql/8.3/main/root.crt 
    81  
    82 cp ./arqs-conf/etc/postgresql/8.3/main/postgresql.conf /etc/postgresql/8.3/main/ 
    83 cp ./arqs-conf/etc/postgresql/8.3/main/pg_hba.conf /etc/postgresql/8.3/main/ 
    84  
    85 /etc/init.d/postgresql-8.3 start 
    86  
    87 su - postgres -c 'dropdb expresso'  || { echo "Banco expresso não existia. [OK]"; } 
    88 su - postgres -c 'createdb -E LATIN1 expresso'  || { echo "Problemas na criação do banco expresso. [Falhou]"; exit 1;} 
    89  
    90 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-conf/expresso.dump > /tmp/expresso.dump 
    91  
    92 su - postgres -c 'psql -f /tmp/expresso.dump expresso' 
    93  
    94 rm /tmp/expresso.dump 
    95  
    96 /etc/init.d/postgresql-8.3 restart 
    97  
    98  
    9962############################################################################################ 
    10063# APACHE 
     
    164127echo "127.0.0.1         $DOMAIN" >> /etc/hosts 
    165128 
    166  
    167  
    168  
    169129sleep 10 
    170130 
     
    180140 
    181141############################################################################################ 
     142# POSTGRES 
     143apt-get install -y postgresql postgresql-common postgresql-client postgresql-client-common || { echo "Erro ao iniciar. Sem problema.[OK]";} 
     144#parando o serviço e fazendo backup 
     145/etc/init.d/postgresql-8.3 stop 
     146mv /var/lib/postgresql/8.3/main /var/lib/postgresql/8.3/main_backup_$(date +%s) 
     147 
     148#alterando o proprietário do diretório temporariamente 
     149chown postgres\: /var/lib/postgresql/8.3 
     150 
     151su - postgres -c 'export LANG=pt_BR.ISO-8859-1;/usr/lib/postgresql/8.3/bin/initdb -E latin1 -D /var/lib/postgresql/8.3/main' 
     152 
     153#restaurando o proprietário do diretório 
     154chown root\: /var/lib/postgresql/8.3 
     155echo "COPIANDO ARQUIVOS DE CONFIGURACAO DO EXPRESSO PARA O PGSQL...." 
     156cp ./arqs-conf/etc/postgresql/8.3/main/postgresql.conf /etc/postgresql/8.3/main/ 
     157cp ./arqs-conf/etc/postgresql/8.3/main/pg_hba.conf /etc/postgresql/8.3/main/ 
     158/etc/init.d/postgresql-8.3 start 
     159 
     160su - postgres -c 'dropdb expresso'  || { echo "Banco expresso não existia. [OK]"; } 
     161su - postgres -c 'createdb -E LATIN1 expresso'  || { echo "Problemas na criação do banco expresso. [Falhou]"; exit 1;} 
     162 
     163sed -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-conf/expresso.dump > /tmp/expresso.dump 
     164 
     165su - postgres -c 'psql -f /tmp/expresso.dump expresso' 
     166 
     167rm /tmp/expresso.dump 
     168 
     169/etc/init.d/postgresql-8.3 restart 
     170 
    182171 
    183172## Mudamos o debconf para high, default do Debian Etch. 
Note: See TracChangeset for help on using the changeset viewer.