~hp-discover/charms/trusty/node-app/trunk

« back to all changes in this revision

Viewing changes to hooks/mongodb-relation-changed

  • Committer: Mark Mims
  • Date: 2011-09-30 20:09:18 UTC
  • Revision ID: mark.mims@agiledynamics.com-20110930200918-ufevyeq3patjzh3o
cleanup from project rename

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
app_dir="$install_root/$app_name"
18
18
 
19
19
configure_app() {
20
 
  ensemble-log "configuring ${app_name} to work with the mongodb service"
 
20
  juju-log "configuring ${app_name} to work with the mongodb service"
21
21
 
22
22
  config_file_path=$app_dir/config/config.js
23
23
  if [ -f $config_file_path ]; then
24
 
    ensemble-log "Writing $app_name config file $config_file_path"
 
24
    juju-log "Writing $app_name config file $config_file_path"
25
25
    sed -i "s/mongo_host.*/mongo_host\" : \"${host}\"/" $config_file_path
26
26
    sed -i "s/mongo_port.*/mongo_port\" : ${port}/" $config_file_path
27
27
  fi
28
28
}
29
29
configure_app
30
30
 
31
 
ensemble-log "(re)starting app"
 
31
juju-log "(re)starting app"
32
32
service ${app_name} restart || service ${app_name} start
33
33