Ignore:
Timestamp:
05/22/12 00:15:30 (12 years ago)
Author:
wmerlotto
Message:

Ticket #2557 - Correcoes no instalador conforme sugestao no forum

Location:
trunk/INSTALL/arquivos/scripts
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/INSTALL/arquivos/scripts/aux.sh

    r6219 r6261  
    8383                        PSUEDONAME=`cat /etc/redhat-release | sed s/.*\(// | sed s/\)//` 
    8484                        REV=`cat /etc/redhat-release | sed s/.*release\ // | sed s/\ .*//` 
    85                 # Debian, Ubuntu e variantes, que possuem o LSB 
     85                # Debian, Ubuntu e variantes 
    8686                elif [ -f /etc/debian_version ] ; then 
    87                         DIST=`lsb_release -si` 
    88                         PSEUDONAME=`lsb_release -sc` 
    89                         REV=`lsb_release -sr` 
     87                        # Verifica se o LSB esta instalado 
     88                        LSB=`which lsb_release` 
     89                        # Se nao estiver, configura no braco 
     90                        if [ -z "$LSB" ] ; then 
     91                                DIST="Debian" 
     92                                REV=`cat /etc/debian_version` 
     93                        # Se nao, usa o LSB. Ubuntu eh reconhecido aqui 
     94                        else 
     95                                DIST=`lsb_release -si` 
     96                                PSEUDONAME=`lsb_release -sc` 
     97                                REV=`lsb_release -sr` 
     98                        fi 
    9099                # TODO: Validar do suse 
    91100                elif [ -f /etc/SuSE-release ] ; then 
     
    97106        fi 
    98107} 
     108 
     109qualSO 
     110echo $OSSTR 
    99111 
    100112validaSO () 
  • trunk/INSTALL/arquivos/scripts/bd.sh

    r6173 r6261  
    6464} 
    6565 
    66 bd_debian-squeeze () 
     66bd_debian_6 () 
    6767{ 
    6868        DIR_PG="/var/lib/postgresql/8.4/main" 
     
    9999} 
    100100 
    101 bd_ubuntu-11.10 () 
     101bd_ubuntu_1110 () 
    102102{ 
    103103        DIR_PG="/var/lib/postgresql/9.1/main" 
     
    134134} 
    135135 
    136 bd_rhel6 () 
     136bd_rhel_6 () 
    137137{ 
    138138        DIR_PG="/var/lib/pgsql" 
  • trunk/INSTALL/arquivos/scripts/http.sh

    r6173 r6261  
    6666} 
    6767 
    68 http_debian-squeeze () 
     68http_debian_6 () 
    6969{ 
    7070        http_debian 
     
    8484} 
    8585 
    86 http_ubuntu-11.10 () 
     86http_ubuntu_1110 () 
    8787{ 
    88         http_debian-squeeze 
     88        http_debian_6 
    8989        cp -a ubuntu/11.10/.htaccess $DIR_EXPRESSO 
    9090        cp -a ubuntu/11.10/etc/apache2/apache2.conf /etc/apache2/ 
     
    109109} 
    110110 
    111 http_rhel6 () 
     111http_rhel_6 () 
    112112{ 
    113113        http_rhel 
     
    122122} 
    123123 
    124 # 
    125 # TODO: Preciso de alguem que ajude a testar o SLES! Nao garanto que este codigo funcione 
    126 # 
    127 http_sles () 
    128 { 
    129         yast -i apache2 apache2-prefork apache2-mod_php5 \ 
    130                 php5 php5-devel php5-gd php5-imap php5-ldap php5-pgsql php5-mbstring php5-pear-auth \ 
    131                 zip unzip 
    132  
    133         cpexpresso "/srv/www/htdocs" 
    134         chown -R wwwrun:www /srv/www/htdocs/expresso /home/expressolivre 
    135  
    136         a2enmod rewrite 
    137 } 
    138  
    139 http_sles10 () 
    140 { 
    141         http_sles 
    142  
    143         cp -a sles10/etc/apache2/httpd.conf /etc/apache2/ 
    144         cp -a sles10/etc/apache2/server-tuning.conf /etc/apache2/ 
    145         cp -a sles10/etc/apache2/vhosts.d/expresso.conf /etc/apache2/vhosts.d/ 
    146         cp -a sles10/etc/apache2/sysconfig.d/global.conf /etc/apache2/sysconfig.d/ 
    147         cp -a sles10/etc/php5/apache2/php.ini /etc/php5/apache2/ 
    148  
    149         rcapache2 restart 
    150 } 
  • trunk/INSTALL/arquivos/scripts/imap.sh

    r5871 r6261  
    2222} 
    2323 
    24 imap_debian-squeeze () 
     24imap_debian_6 () 
    2525{ 
    2626        apt-get -y install cyrus-admin-2.2 cyrus-clients-2.2 cyrus-common-2.2 cyrus-doc-2.2 cyrus-imapd-2.2 \ 
     
    4343} 
    4444 
    45 imap_ubuntu-11.10 () 
     45imap_ubuntu_1110 () 
    4646{ 
    47         imap_debian-squeeze 
     47        imap_debian_6 
    4848} 
    49  
    5049 
    5150imap_rhel () 
     
    5655} 
    5756 
    58 imap_rhel6 () 
     57imap_rhel_6 () 
    5958{ 
    6059        imap_rhel 
  • trunk/INSTALL/arquivos/scripts/ini.sh

    r6173 r6261  
    2020} 
    2121 
    22 ini_debian-lenny () 
     22ini_debian_6 () 
    2323{ 
    2424        ini_debian 
    2525} 
    2626 
    27 ini_debian-squeeze () 
     27ini_ubuntu_1110 () 
    2828{ 
    29         ini_debian 
    30 } 
    31  
    32 ini_ubuntu-11.10 () 
    33 { 
    34         ini_debian-squeeze       
     29        ini_debian_6     
    3530} 
    3631 
     
    7267} 
    7368 
    74 ini_rhel5 () 
    75 { 
    76         ini_rhel 
    77         # Deixa o SELinux permissivo 
    78         cp -f rhel/5/etc/selinux/config /etc/selinux/config 
    79         setenforce 0 
    80 } 
    81  
    82 ini_rhel6 () 
     69ini_rhel_6 () 
    8370{ 
    8471        ini_rhel 
     
    8875} 
    8976 
    90 # 
    91 # TODO: Preciso de alguem que ajude a testar o SLES! Nao garanto que este codigo funcione 
    92 # 
    93 ini_sles () 
    94 { 
    95         yast -i openssl vim 
    96 } 
    97  
    98 ini_sles10 () 
    99 { 
    100         ini_sles 
    101 } 
    102  
    103 ini_sles11 () 
    104 { 
    105         ini_sles 
    106 } 
  • trunk/INSTALL/arquivos/scripts/ldap.sh

    r6202 r6261  
    4646} 
    4747 
    48 ldap_debian-squeeze () 
     48ldap_debian_6 () 
    4949{ 
    5050        # BDB do Squeeze 
     
    5555} 
    5656 
    57 ldap_ubuntu-11.10 () 
     57ldap_ubuntu_1110 () 
    5858{ 
    59         ldap_debian-squeeze 
     59        ldap_debian_6 
    6060} 
    6161 
     
    7878} 
    7979 
    80 ldap_rhel6 () 
     80ldap_rhel_6 () 
    8181{ 
    8282        RHEL6=rhel/6/etc/openldap 
  • trunk/INSTALL/arquivos/scripts/smtp.sh

    r6173 r6261  
    2828} 
    2929 
    30 smtp_rhel6 () 
     30smtp_rhel_6 () 
    3131{ 
    3232        RHEL6="rhel/6/etc/postfix" 
     
    4343} 
    4444 
    45 smtp_debian-squeeze () 
     45smtp_debian_6 () 
    4646{ 
    4747        SQUEEZE="debian/squeeze/etc/postfix" 
     
    4949} 
    5050 
    51 smtp_ubuntu-11.10 () 
     51smtp_ubuntu_1110 () 
    5252{ 
    53         smtp_debian-squeeze 
     53        smtp_debian_6 
    5454} 
    5555 
Note: See TracChangeset for help on using the changeset viewer.