Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -eu # -x for verbose logging to juju debug-log
- ORIGIN=$(config-get origin)
- VERSION=$(config-get version)
- if [[ $ORIGIN == lp ]]; then
- apt-get -y update
- apt-get install -y python-werkzeug python-simplejson python-tz \
- python-dateutil python-babel --no-install-recommends
- cd /srv/
- if [[ ! -d openerp-web ]]; then
- bzr checkout --lightweight lp:openerp-web${VERSION} openerp-web
- fi
- else
- apt-get -y update
- apt-get install -y openerp-web apache2 --no-install-recommends
- fi
- if [[ -e /etc/init/openerp-web.conf ]]; then
- # installed: change the existing configuration
- if [[ $ORIGIN == lp ]]; then
- sed -i -e 's|--db-filter=".*"|--db-filter="${DB_FILTER}|' /etc/init/openerp-web.conf
- else
- fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement