Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix indentation with bash + python

  • Loading branch information...
commit 38c6b255365ce42ffe0cfe7670255079477e609f 1 parent e667584
@avoine avoine authored
Showing with 28 additions and 28 deletions.
  1. +28 −28 hooks/install
View
56 hooks/install
@@ -23,34 +23,34 @@ ln -s /etc/openerp-web/apache2.conf /etc/apache2/conf.d/openerp.conf
if [[ $ORIGIN == ppa:credativ/openerp-6.0-releases ]];then
cat > /usr/share/openerp-web/wsgi/wsgi_app.py << EOF
- import os
- import sys
-
- sys.path.append('/usr/share/openerp-web')
-
- try:
- from cherrypy.lib.reprconf import as_dict
- except ImportError:
- from cherrypy._cpconfig import as_dict
- import openobject
-
- config = as_dict('/etc/openerp-web/openerp-web.cfg')
-
- if ('/' in config and 'tools.sessions.storage_type' in config['/']
- and config['/']['tools.sessions.storage_type'] == 'file'):
- storage_path = config['/']['tools.sessions.storage_path']
- for the_file in os.listdir(storage_path):
- file_path = os.path.join(storage_path, the_file)
- try:
- if os.path.isfile(file_path):
- os.unlink(file_path)
- except Exception, e:
- print e
-
- openobject.configure(config)
- openobject.enable_static_paths() # serve static file via the wsgi server
-
- application = openobject.application
+import os
+import sys
+
+sys.path.append('/usr/share/openerp-web')
+
+try:
+ from cherrypy.lib.reprconf import as_dict
+except ImportError:
+ from cherrypy._cpconfig import as_dict
+import openobject
+
+config = as_dict('/etc/openerp-web/openerp-web.cfg')
+
+if ('/' in config and 'tools.sessions.storage_type' in config['/']
+ and config['/']['tools.sessions.storage_type'] == 'file'):
+ storage_path = config['/']['tools.sessions.storage_path']
+ for the_file in os.listdir(storage_path):
+ file_path = os.path.join(storage_path, the_file)
+ try:
+ if os.path.isfile(file_path):
+ os.unlink(file_path)
+ except Exception, e:
+ print e
+
+openobject.configure(config)
+openobject.enable_static_paths() # serve static file via the wsgi server
+
+application = openobject.application
EOF
fi
Please sign in to comment.
Something went wrong with that request. Please try again.