2014-03-31 16:38:46 +07:00
|
|
|
#!/bin/sh
|
|
|
|
# Note: python-bitcoinrpc and functioncache are twister-specific branches
|
|
|
|
# Perhaps their pull-requests will get merged upstream one day (and we'll rebase when it happens)
|
|
|
|
# but we can't let it stop us :)
|
|
|
|
git submodule update --init
|
|
|
|
if [ -f cherrypy.config ] ; then
|
|
|
|
echo you already have cherrypy.config
|
|
|
|
else
|
|
|
|
sed -e "s:/PATH/HERE:`pwd`:" \
|
|
|
|
-e "s/RANDOM/$(python -c "import random; print random._urandom(60).encode('base_64').strip().replace('\n','').replace('/','')")/" \
|
|
|
|
< cherrypy.config.example > cherrypy.config
|
|
|
|
echo "created cherrypy.config. Now edit it to taste ;)"
|
|
|
|
fi
|
2014-04-01 19:33:13 +07:00
|
|
|
chmod 600 cherrypy.config # chmod even if it exists :)
|
2014-03-31 19:35:57 +07:00
|
|
|
if [ ! -f appdir.py ] ; then
|
|
|
|
echo "# Stupid but effective trick to know where we are:">appdir.py
|
2014-03-31 19:48:56 +07:00
|
|
|
echo "APPDIR = '$(pwd)'">>appdir.py
|
2014-03-31 19:35:57 +07:00
|
|
|
fi
|