~johnsca/charms/precise/thinkup/charm-proof

« back to all changes in this revision

Viewing changes to hooks/config-changed

  • Committer: Nathan Osman
  • Date: 2011-11-25 01:36:51 UTC
  • Revision ID: admin@quickmediasolutions.com-20111125013651-57qut3def5iklgi2
Reorganized registration of primary owner and added PHP script to configure owner.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
juju-log "Retrieving configuration values"
7
7
 
8
8
TITLE=`config-get title`
 
9
NAME=`config-get name`
 
10
EMAIL=`config-get email`
 
11
PASSWORD=`config-get password`
9
12
TIMEZONE=`config-get timezone`
10
13
CACHE=`config-get cache`
11
14
CACHE_LIFETIME=`config-get cache-lifetime`
12
15
 
 
16
# Update the user configuration IF the config data has
 
17
# been supplied AND the DB has been configured.
 
18
if [[ -n $NAME && -n $EMAIL && -n $PASSWORD && -f /opt/created_database_tables]] ; then
 
19
    juju-log "Updating the owner information"
 
20
    update_admin_info "$NAME" "$EMAIL" "$PASSWORD"
 
21
fi
 
22
 
 
23
# Update the configuration
13
24
juju-log "Updating configuration file"
14
25
update_thinkup_config <<EOD
15
26
app_title="$TITLE"