summaryrefslogtreecommitdiff
path: root/opentox-ruby.sh
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2011-02-09 12:02:18 +0100
committerChristoph Helma <helma@in-silico.ch>2011-02-09 12:02:18 +0100
commita3249570b20821307aec0a90df8bcfe5255f6164 (patch)
treea6899dc7f1e3ed023e1df6483b73919b6c005d90 /opentox-ruby.sh
parent895237357d518f53e99393ce06d96d200840f0d7 (diff)
fixed return dirs
Diffstat (limited to 'opentox-ruby.sh')
-rw-r--r--opentox-ruby.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/opentox-ruby.sh b/opentox-ruby.sh
index 47a20a7..95703ef 100644
--- a/opentox-ruby.sh
+++ b/opentox-ruby.sh
@@ -5,6 +5,8 @@ echo "Installing opentox-ruby gem"
. ./config
gem install opentox-ruby
+dir=`pwd`
+
# create config file
password=`pwgen 8 1`
servername=`hostname`.`dnsdomainname`
@@ -26,7 +28,7 @@ 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
- checkout development version and link lib to opentox-ruby gem
+# checkout development version and link lib to opentox-ruby gem
if [ $branch = "development" ]
then
cd /var/www/opentox
@@ -38,3 +40,4 @@ then
mv $gem_lib $gem_lib~
ln -s /var/www/opentox/opentox-ruby/lib $gem_lib
fi
+cd $dir