~george-edison55/charms/oneiric/thinkup/update-to-1-0-2

« back to all changes in this revision

Viewing changes to hooks/config-changed

  • Committer: Nathan Osman
  • Date: 2011-11-19 05:59:33 UTC
  • Revision ID: admin@quickmediasolutions.com-20111119055933-mv36jmb3qxvk889w
Initial commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
 
3
 
set -e
4
 
 
5
 
# Retrieve the configuration values
6
 
juju-log "Retrieving configuration values"
7
 
 
8
 
TITLE=`config-get title`
9
 
TIMEZONE=`config-get timezone`
10
 
CACHE=`config-get cache`
11
 
CACHE_LIFETIME=`config-get cache-lifetime`
12
 
 
13
 
juju-log "Updating configuration file"
14
 
update_thinkup_config <<EOD
15
 
app_title="$TITLE"
16
 
timezone="$TIMEZONE"
17
 
cache_pages=$CACHE
18
 
cache_lifetime=$CACHE_LIFETIME
19
 
EOD