summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-04-07 16:31:38 +0200
committerAndreas Maunz <andreas@maunz.de>2011-04-07 16:31:38 +0200
commit1e9174342a0bae9b7e00c6d81a8271934a90baf7 (patch)
treec3ba54f4e1e7b2722075c354c170c3f87d75556b
parent1e43bd895e9e46bd1570cd80840f6f8cf18761ed (diff)
Fixed replacing WWW_DEST
-rwxr-xr-xopentox-ruby.sh4
-rw-r--r--production.yaml2
2 files changed, 3 insertions, 3 deletions
diff --git a/opentox-ruby.sh b/opentox-ruby.sh
index b27ef85..692cc61 100755
--- a/opentox-ruby.sh
+++ b/opentox-ruby.sh
@@ -67,8 +67,8 @@ fi
mkdir -p "$HOME/.opentox/config" >>$LOG 2>&1
mkdir -p "$HOME/.opentox/log" >>$LOG 2>&1
-cmd="sed -e \"s/SERVERNAME/$servername/;s/ESCAPEDSERVER/$escapedserver/;s/LOGGER/$logger/;s/AA/$aa/\" production.yaml > $HOME/.opentox/config/production.yaml" && run_cmd "$cmd" "Config 1"
-cmd="sed -e \"s/SERVERNAME/$servername/;s/ESCAPEDSERVER/$escapedserver/;s/LOGGER/$logger/;s/AA/$aa/\" aa-local.yaml >> $HOME/.opentox/config/production.yaml" && run_cmd "$cmd" "Config 2"
+cmd="sed -e \"s,SERVERNAME,$servername,;s,ESCAPEDSERVER,$escapedserver,;s,LOGGER,$logger,;s,AA,$aa,;s,WWW_DEST,$WWW_DEST,\" production.yaml > $HOME/.opentox/config/production.yaml" && run_cmd "$cmd" "Config 1"
+cmd="sed -e \"s,SERVERNAME,$servername,;s,ESCAPEDSERVER,$escapedserver,;s,LOGGER,$logger,;s,AA,$aa,;s,WWW_DEST,$WWW_DEST,\" aa-$OT_INSTALL.yaml >> $HOME/.opentox/config/production.yaml" && run_cmd "$cmd" "Config 1"
if [ "$OT_BRANCH" = "development" ]; then
mkdir -p $WWW_DEST/opentox >>$LOG 2>&1
diff --git a/production.yaml b/production.yaml
index 0e77ddd..35dd577 100644
--- a/production.yaml
+++ b/production.yaml
@@ -1,4 +1,4 @@
-:base_dir: /var/www/opentox/
+:base_dir: WWW_DEST
:services:
# make sure to enter a full uri (including training slash)