~george-edison55/charms/precise/statusnet/added-maintainer

« back to all changes in this revision

Viewing changes to hooks/config-changed

  • Committer: Nathan Osman
  • Date: 2011-11-29 07:00:43 UTC
  • Revision ID: admin@quickmediasolutions.com-20111129070043-xqpxjd0ty3qc6j4t
Almost finished filling in the rest of the hooks, added two utility scripts, and made some corrections here and there.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
set -e
4
4
 
5
 
# TODO
 
5
# Retrieve the configuration values
 
6
juju-log "Retrieving configuration values"
 
7
TITLE=`config-get title`
 
8
NICKNAME=`config-get nickname`
 
9
PASSWORD=`config-get password`
 
10
 
 
11
# Update the user configuration IF the config data has
 
12
# been supplied AND the DB has been configured.
 
13
if [[ -n $NICKNAME && -n $PASSWORD && -f /opt/created_database_tables ]] ; then
 
14
    juju-log "Updating administrator information"
 
15
    update_admin_info "$NICKNAME" "$PASSWORD"
 
16
fi
 
17
 
 
18
# Now update the general config settings
 
19
juju-log "Updating configuration file"
 
20
update_statusnet_config <<EOD
 
21
site/name=$TITLE
 
22
EOD