~rharding/charms/precise/charmworld/update_ini

« back to all changes in this revision

Viewing changes to hooks/config-changed

  • Committer: Aaron Bentley
  • Date: 2013-01-11 19:29:36 UTC
  • Revision ID: aaron@canonical.com-20130111192936-jmy7f7jy13p9217v
Specify session secret on a per-machine basis.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    chown ubuntu.ubuntu . -R
28
28
fi
29
29
 
 
30
secret=$(head -c 3 /dev/urandom|sha1sum|cut -f 1 -d ' ')
 
31
# Supply secret, if unspecified.
 
32
sed -i -e "s/session.secret =$/session.secret = ${secret}/" $CONFIG_FILE
 
33
 
30
34
interval=`config-get execute-ingest-every`
31
35
: ${interval:-0}
32
36