Ignore:
Timestamp:
09/25/12 09:03:46 (12 years ago)
Author:
eduardow
Message:

Ticket #3123 - Correções auxiliares em todo o instalador.

Location:
branches/2.4/INSTALL/arquivos/scripts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/INSTALL/arquivos/scripts/aux.sh

    r6261 r7293  
    5858} 
    5959 
     60log_erro ()  
     61{  
     62        echo "$1"  
     63} 
     64 
    6065qualSO () 
    6166{ 
     
    107112} 
    108113 
    109 qualSO 
    110 echo $OSSTR 
    111  
    112114validaSO () 
    113115{ 
  • branches/2.4/INSTALL/arquivos/scripts/bd.sh

    r6261 r7293  
    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 
  • branches/2.4/INSTALL/arquivos/scripts/http.sh

    r7228 r7293  
    2626        get_org 
    2727        # Faz backup do hosts 
    28         cp -f /etc/hosts /etc/hosts.`date "+%s"` 
     28        cp -f /etc/hosts /etc/hosts.`date "+%s"` || log_erro "Erro ao copiar o /etc/hosts!" 
    2929        NOVOHOSTS=`mktemp` 
    3030        echo "127.0.0.1 $DOMAIN localhost `hostname`" > $NOVOHOSTS 
    31         cat /etc/hosts >> $NOVOHOSTS 
     31        cat /etc/hosts >> $NOVOHOSTS || log_erro "Erro ao agregar o /etc/hosts!" 
    3232        mv -f $NOVOHOSTS /etc/hosts 
    3333         
     
    5252        apt-get install -y apache2-mpm-prefork libapache2-mod-php5 apache2-utils \ 
    5353                php5 php5-common php5-dev php5-gd php5-imap php5-ldap php5-pgsql php5-cgi php5-cli php5-curl php5-xmlrpc php5-memcache php5-pspell \ 
    54                 libgv-php5 zip unzip memcached libmemcached5 
     54                libgv-php5 zip unzip memcached 
    5555        # Copia os arquivos do Expresso Livre 
    5656        cpexpresso "/var/www" 
     
    6969{ 
    7070        http_debian 
     71        # O nome do pacote do memcache no Debian é diferente do Ubuntu  
     72        apt-get -y install libmemcached5 || log_erro "Pacote nao encontrado" 
    7173        # Copia a configuração do servidor apache2 
    7274        cp -a debian/squeeze/etc/apache2/apache2.conf /etc/apache2/ 
     
    8789{ 
    8890        http_debian_6 
     91        # O nome do pacote do memcache no Debian é diferente do Ubuntu  
     92        apt-get -y install libmemcached6  
    8993        cp -a ubuntu/11.10/.htaccess $DIR_EXPRESSO 
    9094        cp -a ubuntu/11.10/etc/apache2/apache2.conf /etc/apache2/ 
Note: See TracChangeset for help on using the changeset viewer.