~justin-fathomdb/charms/trusty/wordpress/trunk

« back to all changes in this revision

Viewing changes to hooks/db-relation-changed

  • Committer: Marco Ceppi
  • Date: 2012-08-29 21:06:31 UTC
  • mfrom: (55.1.7 wordpress)
  • Revision ID: marco@ceppi.net-20120829210631-102wyohd8k34dxuf
Add inter-unit communication via loadbalancer-relation-changed

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
    exit 0
22
22
fi
23
23
 
24
 
secret_key=`pwgen 10 1`
25
 
echo $secret_key > wp_secret
 
24
secret_key=`cat .wp-secret`
 
25
 
26
26
source "/usr/share/charm-helper/sh/net.sh"
27
27
 
28
28
##
30
30
# Psh, whatever, plain-text for now. #blamenacin
31
31
# https://twitter.com/#!/marcoceppi/status/181570187655520260
32
32
# I was wrong, we need to use something other than WGET, like cURL
33
 
LATEST_WORDPRESS="http://wordpress.org/latest.tar.gz"
34
 
DOWNLOAD=`ch_get_file "$LATEST_WORDPRESS" "http://wordpress.org/latest.tar.gz.sha1"`
 
33
LATEST_WORDPRESS="https://wordpress.org/latest.tar.gz"
 
34
DOWNLOAD=`ch_get_file "$LATEST_WORDPRESS" "https://wordpress.org/latest.tar.gz.sha1"`
35
35
##
36
36
 
37
37
if [ ! -f "$DOWNLOAD" ] || [ -z "$DOWNLOAD" ]; then