- Timestamp:
- 07/08/10 17:52:20 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/doc-expressolivre/debian/expressoInstallDebian-lenny.sh
r1331 r3018 3 3 # Criado por João Alfredo Knopik Junior <jakjr@celepar.pr.gov.br> 4 4 # Colaborações: 5 # 6 # 5 # "William Fernando Merlotto" <william@prognus.com.br> 6 # "Alexandre Felipe Muller de Souza" <amuller@celepar.pr.gov.br> 7 7 8 8 set -e # Para caso de erro 9 9 10 10 if [ $UID != 0 ]; then { 11 12 13 11 echo "Este script deve ser executado como superusuario, root ou sudo"; 12 exit 1; 13 } 14 14 fi 15 15 … … 49 49 dialog --backtitle "$BACKTITLE" --cr-wrap --msgbox \ 50 50 "A instalação dos pacotes necessários para o ExpressoLivre começará agora." 10 65 && 51 #..................................................................... 51 #..................................................................... 52 52 53 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 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; } … … 65 65 #apache2-ssl-certificate; 66 66 67 a2enmod rewrite; 67 a2enmod rewrite 68 a2enmod ssl 68 69 69 70 cp -r -p ../../../expresso/ /var/www/ 70 cp ./arqs-conf/etc/apache2/apache2.conf /etc/apache2/71 cp ./arqs-conf/etc/apache2/ ports.conf /etc/apache2/72 cp ./arqs-conf/etc/apache2/ sites-available/default /etc/apache2/sites-available/71 cp ./arqs-conf/etc/apache2/apache2.conf.lenny /etc/apache2/apache2.conf 72 cp ./arqs-conf/etc/apache2/sites-available/default.lenny /etc/apache2/sites-available/expresso 73 cp ./arqs-conf/etc/apache2/ports.conf.lenny /etc/apache2/ports.conf 73 74 cp -r -p ./arqs-conf/etc/apache2/ssl/ /etc/apache2/ 74 75 … … 76 77 mkdir /php_sessions/ || { echo "Diretório já existe. [OK]"; } 77 78 chmod -R 777 /php_sessions/ 79 80 a2ensite expresso 81 a2dissite default 82 83 # Linha adicionada para resolver alguns warnings quando "apache2ctl configtest" 84 HOST=`hostname` ; mv /etc/hosts /etc/hosts.ori ; echo 127.0.0.1 $DOMAIN localhost $HOST > /etc/hosts ; cat /etc/hosts.ori >> /etc/hosts ; rm /etc/hosts.ori 78 85 79 86 /etc/init.d/apache2 restart … … 86 93 rm -rf /var/lib/ldap 87 94 mkdir /var/lib/ldap 88 cp ./arqs-conf/etc/ldap/DB_CONFIG /var/lib/ldap/ 89 chown -R openldap. /var/lib/ldap/ 95 chown -R openldap:openldap /var/lib/ldap/ 90 96 /etc/init.d/slapd start 91 97 /etc/init.d/slapd stop … … 101 107 /etc/init.d/slapd start 102 108 rm /tmp/expresso.ldif 109 103 110 ############################################################################################ 104 111 # CYRUS … … 126 133 /etc/init.d/postfix restart 127 134 postmap /etc/postfix/expresso-dominios 128 echo "127.0.0.1 $DOMAIN" >> /etc/hosts129 135 130 136 sleep 10 … … 134 140 mkdir /home/expressolivre || { echo "Diretório já existe. [OK]"; } 135 141 cp ./arqs-conf/home/expressolivre/* /home/expressolivre/ 136 chown -R www-data .www-data /home/expressolivre/142 chown -R www-data:www-data /home/expressolivre/ 137 143 ############################################################################################ 138 144 # HEADER_INC_PHP 139 145 sed -e "s/HEADER_PWD/$HEADER_PWD/g" ./arqs-conf/header.inc.php > /var/www/expresso/header.inc.php 140 chown www-data .www-data /var/www/expresso/header.inc.php146 chown www-data:www-data /var/www/expresso/header.inc.php 141 147 142 148 ############################################################################################ … … 179 185 echo Acerta permissoes das pastas crls e temp em /var/www/expresso/security: 180 186 chown www-data:www-data /var/www/expresso/security/temp 181 chown www-data:www-data /var/www/expresso/logs 187 chown www-data:www-data /var/www/expresso/logs 182 188 chown -R www-data:www-data /var/www/expresso/security/crls 183 chown www-data .www-data /var/www/expresso/security/crl_admin/crl_admin.py189 chown www-data:www-data /var/www/expresso/security/crl_admin/crl_admin.py 184 190 chmod 755 /var/www/expresso/security/temp 185 191 chmod 755 /var/www/expresso/security/crls
Note: See TracChangeset
for help on using the changeset viewer.