Fixed intermittent cryptonas-server crash at startup
This commit is contained in:
parent
e862e16a59
commit
b5003220b9
2 changed files with 39 additions and 20 deletions
23
config/chroot_local-hooks/50cnas-cherrypy-fix.sh
Executable file
23
config/chroot_local-hooks/50cnas-cherrypy-fix.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# License: This script is distributed under the terms of version 2
|
||||
# of the GNU GPL. See the LICENSE file included with the package.
|
||||
#
|
||||
# $Id: $
|
||||
#
|
||||
# this script is part of the build process of CryptoNAS
|
||||
#
|
||||
# 2010-01-20 James Crofts adapted to implement a different CherryPy workaround
|
||||
# 2008-11-27 James Crofts backported workaround from CherryPy src repository.
|
||||
# See http://www.cherrypy.org/ticket/686 and
|
||||
# http://devel.cryptobox.org/ticket/216.
|
||||
#
|
||||
|
||||
## Stop the build process if any of the following steps fail
|
||||
set -e
|
||||
|
||||
##Hack to prevent intermittent cherrypy crashes at startup
|
||||
DIFF="/usr/share/cryptonas-live/_cpwsgiserver.py.diff"
|
||||
##These two files are identical before the patch and must be identical
|
||||
##afterward as well:
|
||||
patch /usr/share/python-support/python-cherrypy/cherrypy/_cpwsgiserver.py < ${DIFF}
|
Loading…
Add table
Add a link
Reference in a new issue