X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fsv%2Fopenerp7_burette%2Frun;h=b6583412b075f2b0d76766d915a21203e972fd18;hb=25b7795fee2a655dfd6dbedcb1233b7dddb9f3fb;hp=822c08146ec1833b8283117b6fa8d55c82409d81;hpb=38d168c3b1dc52a332e17702d53a94daaf4e8f18;p=lhc%2Fateliers.git diff --git a/etc/sv/openerp7_burette/run b/etc/sv/openerp7_burette/run index 822c081..b658341 100755 --- a/etc/sv/openerp7_burette/run +++ b/etc/sv/openerp7_burette/run @@ -12,24 +12,34 @@ export LOGNAME="$sv" /usr/bin/patch --forward --reject-file=- --strip=0 --unified <<-EOF --- /usr/share/pyshared/openerp/addons/web/controllers/main.py 2013-12-01 05:06:50.121954391 +0100 +++ /usr/share/pyshared/openerp/addons/web/controllers/main.py 2013-12-01 05:07:44.917954389 +0100 - @@ -90,6 +90,8 @@ + @@ -90,6 +90,11 @@ h = req.httprequest.environ['HTTP_HOST'].split(':')[0] d = h.split('.')[0] r = openerp.tools.config['dbfilter'].replace('%h', h).replace('%d', d) - + f = req.httprequest.environ['HTTP_OPENERP_DB_FILTER'] - + r = r.replace('%f', f) + + try: + + f = req.httprequest.environ['HTTP_OPENERP_DB_FILTER'] + + r = r.replace('%f', f) + + except KeyError: + + pass dbs = [i for i in dbs if re.match(r, i)] return dbs - EOF for db in \ + autourducycle \ + cyclo_ivry \ cyclo_ivry \ cyclo_pantin \ cyclo_paris_est \ + cyclofficine_angouleme \ dynamo \ + labecaneajules \ + ohcyclo \ ptitvelo \ + repeyre \ + txirrindola \ velorution_idf \ + velorution_toulouse \ velosenville \ vieuxbiclou do @@ -43,7 +53,7 @@ for db in \ --db_host=/run/postgresql \ --db_user="$sv" \ --debug \ - --init=remembership,pos_membership,bikecoop \ + --init=remembership,pos_membership,bikecoop,no_db_management \ --load-language=fr_FR \ --no-xmlrpcs \ --osv-memory-age-limit=0.1 \ @@ -52,7 +62,7 @@ for db in \ --stop-after-init \ --timezone="$(cat /etc/timezone)" \ --without-demo=base \ - --workers=4 \ + --workers=0 \ --xmlrpc-interface=127.0.0.1 \ --xmlrpc-port=8069 #--no-database-list \