Skip to content

Instantly share code, notes, and snippets.

@dreispt
Created September 18, 2012 22:14
Show Gist options
  • Save dreispt/3746266 to your computer and use it in GitHub Desktop.
Save dreispt/3746266 to your computer and use it in GitHub Desktop.
xoe install OpenERp 7
#!/bin/bash
#customize the service name an ports
service_name="trunk"
xml_rpc_port="8081"
xml_rpc_secure_port="8082"
net_rpc_port="8083"
service_code="http://nightly.openerp.com/trunk/nightly/src/openerp-6.2dev-latest.tar.gz"
unix_user="erp_user"
environment="server/setup.py pyopenssl wkhtmltopdf gdata"
programme="server/openerp-server"
# configure the origine of the code used for erp server :
xoe --config -new -directory -server $service_name wget $service_code server
xoe --config -new -environment $service_name Auto /home/$unix_user/openerp/$service_name/$environment
# configure the new service erp-server
xoe --config -new -service $service_name Auto pg-openerp-$service_name $programme $xml_rpc_port $xml_rpc_secure_port $net_rpc_port -
#Create role postgresql
xoe --database -createuser -service $service_name
echo "Download the OpenERP code $service_name"
xoe --directory -download $service_name
xoe --install -environment $service_name
#Print super user password
xoe --service -cfg -password $service_name
echo "Starting the server"
# Start OpenERP-server service
xoe --start
echo "`date` Automatic installation of OpenERP-server $service_name is completed, your new installation status is:"
xoe --status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment