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

2 by Nathan Osman
Added hooks and configuration options.
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
5 by Nathan Osman
Switched to sed for manipulating the preferences files.
13
juju-log "Updating configuration file"
6 by Nathan Osman
Removed sed and switched to a PHP script for updating the config file.
14
update_thinkup_config <<EOD
15
app_title="$TITLE"
16
timezone="$TIMEZONE"
17
cache_pages=$CACHE
18
cache_lifetime=$CACHE_LIFETIME
19
EOD