#!/bin/sh# Modified script from Carlos E. Fonseca Zorrilla yum -y install wget unziprpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpmrpm -ivh http://yum.pgrpms.org/9.2/redhat/rhel-6-i386/pgdg-centos92-9.2-6.noarch.rpmyum -y install python-psycopg2 python-lxml PyXML python-setuptools libxslt-python pytz \ python-matplotlib python-babel python-mako python-dateutil python-psycopg2 \ pychart pydot python-reportlab python-devel python-imaging python-vobject \ hippo-canvas-python mx python-gdata python-ldap python-openid \ python-werkzeug python-vatnumber pygtk2 glade3 pydot python-dateutil \ python-matplotlib pygtk2 glade3 pydot python-dateutil python-matplotlib \ python python-devel python-psutil python-docutils make\ automake gcc gcc-c++ kernel-devel byacc flashplugin-nonfree poppler-utils pywebdav\yum -y install postgresql92-libs postgresql92-server postgresql92service postgresql-9.2 initdbchkconfig postgresql-9.2 onservice postgresql-9.2 startsu - postgres -c "createuser --superuser openerp"cd /tmpwget http://gdata-python-client.googlecode.com/files/gdata-2.0.17.zipunzip gdata-2.0.17.ziprm -rf gdata-2.0.17.zipcd gdata*python setup.py installcd /tmpadduser openerpDIR="/var/run/openerp /var/log/openerp"for NAME in $DIRdoif [ ! -d $NAME ]; then mkdir $NAME chown openerp.openerp $NAMEfidonerm -rf openerp*wget http://nightly.openerp.com/7.0/nightly/src/openerp-7.0-latest.tar.gztar -zxvf openerp-7.0-latest.tar.gz --transform 's!^[^/]\+\($\|/\)!openerp\1!'cd openerppython setup.py installrm -rf /usr/local/bin/openerp-servercp openerp-server /usr/local/bincp install/openerp-server.init /etc/init.d/openerpcp install/openerp-server.conf /etcchown openerp:openerp /etc/openerp-server.confchmod u+x /etc/init.d/openerpchkconfig openerp onservice openerp start
本文转自 拖鞋崽 51CTO博客,原文链接:http://blog.51cto.com/1992mrwang/1194063