Changeset 2936
- Timestamp:
- 06/16/10 17:24:40 (14 years ago)
- Location:
- branches/2.0/doc-expressolivre/debian
- Files:
-
- 3 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/doc-expressolivre/debian/expressoInstallDebian-lenny.sh
r2933 r2936 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 chown -R openldap ./var/lib/ldap/95 chown -R openldap:openldap /var/lib/ldap/ 89 96 /etc/init.d/slapd start 90 97 /etc/init.d/slapd stop … … 100 107 /etc/init.d/slapd start 101 108 rm /tmp/expresso.ldif 109 102 110 ############################################################################################ 103 111 # CYRUS … … 125 133 /etc/init.d/postfix restart 126 134 postmap /etc/postfix/expresso-dominios 127 echo "127.0.0.1 $DOMAIN" >> /etc/hosts128 135 129 136 sleep 10 … … 133 140 mkdir /home/expressolivre || { echo "Diretório já existe. [OK]"; } 134 141 cp ./arqs-conf/home/expressolivre/* /home/expressolivre/ 135 chown -R www-data .www-data /home/expressolivre/142 chown -R www-data:www-data /home/expressolivre/ 136 143 ############################################################################################ 137 144 # HEADER_INC_PHP 138 145 sed -e "s/HEADER_PWD/$HEADER_PWD/g" ./arqs-conf/header.inc.php > /var/www/expresso/header.inc.php 139 chown www-data .www-data /var/www/expresso/header.inc.php146 chown www-data:www-data /var/www/expresso/header.inc.php 140 147 141 148 ############################################################################################ … … 147 154 148 155 #alterando o proprietário do diretório temporariamente 149 chown postgres \:/var/lib/postgresql/8.3156 chown postgres:postgres /var/lib/postgresql/8.3 150 157 151 158 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' 152 159 153 160 #restaurando o proprietário do diretório 154 chown root \:/var/lib/postgresql/8.3161 chown root:root /var/lib/postgresql/8.3 155 162 echo "COPIANDO ARQUIVOS DE CONFIGURACAO DO EXPRESSO PARA O PGSQL...." 156 163 cp ./arqs-conf/etc/postgresql/8.3/main/postgresql.conf /etc/postgresql/8.3/main/ … … 178 185 echo Acerta permissoes das pastas crls e temp em /var/www/expresso/security: 179 186 chown www-data:www-data /var/www/expresso/security/temp 180 chown www-data:www-data /var/www/expresso/logs 187 chown www-data:www-data /var/www/expresso/logs 181 188 chown -R www-data:www-data /var/www/expresso/security/crls 182 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 183 190 chmod 755 /var/www/expresso/security/temp 184 191 chmod 755 /var/www/expresso/security/crls
Note: See TracChangeset
for help on using the changeset viewer.