diff options
Diffstat (limited to 'opentox-ruby.sh')
-rw-r--r-- | opentox-ruby.sh | 6 |
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` |