summaryrefslogtreecommitdiff
path: root/opentox-ruby.sh
diff options
context:
space:
mode:
authorroot <root@ot-dev.in-silico.ch>2011-03-08 09:34:09 +0000
committerroot <root@ot-dev.in-silico.ch>2011-03-08 09:34:09 +0000
commit2f2f6bf857a8ca8ce04ee98b221b0feaa95d5284 (patch)
tree40562b109308fb9af5bbe71178d0ef219f42a763 /opentox-ruby.sh
parentd3cea0a0d792b76464b0760c879d61e91725c675 (diff)
updated for redis
Diffstat (limited to 'opentox-ruby.sh')
-rw-r--r--opentox-ruby.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/opentox-ruby.sh b/opentox-ruby.sh
index 449b746..8d31ccd 100644
--- a/opentox-ruby.sh
+++ b/opentox-ruby.sh
@@ -11,6 +11,7 @@ dir=`pwd`
# create config file
password=`pwgen 8 1`
servername=`hostname`.`dnsdomainname`
+escapedservername=`echo $servername|sed 's/\/\\\//'`
if [ $branch = "development" ]
then
logger=":logger: backtrace"
@@ -27,14 +28,15 @@ fi
mkdir -p $HOME/.opentox/config
mkdir -p $HOME/.opentox/log
-sed -e "s/PASSWORD/$password/;s/SERVERNAME/$servername/;s/LOGGER/$logger/;s/AA/$aa/" production.yaml > $HOME/.opentox/config/production.yaml
+sed -e "s/PASSWORD/$password/;s/SERVERNAME/$servername/;s/ESCAPEDSERVERNAME/$escapedservername/;s/LOGGER/$logger/;s/AA/$aa/" production.yaml > $HOME/.opentox/config/production.yaml
+sed -e "s/PASSWORD/$password/;s/SERVERNAME/$servername/;s/ESCAPEDSERVERNAME/$escapedservername/;s/LOGGER/$logger/;s/AA/$aa/" aa-$type.yaml >> $HOME/.opentox/config/production.yaml
# checkout development version and link lib to opentox-ruby gem
if [ $branch = "development" ]
then
mkdir -p /var/www/opentox
cd /var/www/opentox
- git clone http://github.com/mguetlein/opentox-ruby.git
+ git clone http://github.com/helma/opentox-ruby.git
cd opentox-ruby
git checkout -t origin/$branch
gem_lib=`gem which opentox-ruby`