Changeset 7304 for sandbox/2.4.3-expresso-rest/INSTALL/arquivos/scripts
- Timestamp:
- 09/26/12 10:36:21 (12 years ago)
- Location:
- sandbox/2.4.3-expresso-rest
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.3-expresso-rest
- Property svn:mergeinfo changed
/trunk merged: 7274-7278,7285-7286,7297-7299,7303
- Property svn:mergeinfo changed
-
sandbox/2.4.3-expresso-rest/INSTALL/arquivos/scripts/aux.sh
r6261 r7304 58 58 } 59 59 60 log_erro () 61 { 62 echo "$1" 63 } 64 60 65 qualSO () 61 66 { … … 107 112 } 108 113 109 qualSO110 echo $OSSTR111 112 114 validaSO () 113 115 { -
sandbox/2.4.3-expresso-rest/INSTALL/arquivos/scripts/bd.sh
r6261 r7304 18 18 19 19 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" 23 22 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 24 23 … … 31 30 create_db () 32 31 { 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; } 35 34 su - postgres -c 'psql -f /tmp/expresso.dump expresso' 36 35 } … … 91 90 92 91 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} 95 93 /etc/init.d/postgresql start 96 94 -
sandbox/2.4.3-expresso-rest/INSTALL/arquivos/scripts/http.sh
r7058 r7304 26 26 get_org 27 27 # 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!" 29 29 NOVOHOSTS=`mktemp` 30 30 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!" 32 32 mv -f $NOVOHOSTS /etc/hosts 33 33 … … 52 52 apt-get install -y apache2-mpm-prefork libapache2-mod-php5 apache2-utils \ 53 53 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 libmemcached554 libgv-php5 zip unzip memcached 55 55 # Copia os arquivos do Expresso Livre 56 56 cpexpresso "/var/www" … … 69 69 { 70 70 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" 71 73 # Copia a configuração do servidor apache2 72 74 cp -a debian/squeeze/etc/apache2/apache2.conf /etc/apache2/ … … 87 89 { 88 90 http_debian_6 91 # O nome do pacote do memcache no Debian é diferente do Ubuntu 92 apt-get -y install libmemcached6 89 93 cp -a ubuntu/11.10/.htaccess $DIR_EXPRESSO 90 94 cp -a ubuntu/11.10/etc/apache2/apache2.conf /etc/apache2/
Note: See TracChangeset
for help on using the changeset viewer.