~mariusko/charms/precise/node-app/lp1123939_procfile_support

« back to all changes in this revision

Viewing changes to hooks/mongodb-relation-changed

  • Committer: mmm
  • Date: 2011-07-26 17:27:03 UTC
  • Revision ID: mmm@ensemble.inside.agiledynamics.com-20110726172703-n0zwfq2btdkkw3qg
typo

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
config_file_path=$app_dir/config/config.js
22
22
if [ -f $config_file_path ]; then
23
23
  ensemble-log "Writing $app_name config file $config_file_path"
24
 
  sed -i 's/mongo_host.*/mongo_host" : ${host}' $config_file_path
25
 
  sed -i 's/mongo_port.*/mongo_port" : ${port}' $config_file_path
 
24
  sed -i "s/mongo_host.*/mongo_host\" : \"${host}\"/" $config_file_path
 
25
  sed -i "s/mongo_port.*/mongo_port\" : ${port}/" $config_file_path
26
26
fi
27
27
 
28
28
ensemble-log "Starting app"