~ibm-demo/charms/trusty/wordpress/trunk

« back to all changes in this revision

Viewing changes to inc/common

  • Committer: Marco Ceppi
  • Date: 2014-07-17 18:32:50 UTC
  • mfrom: (72.2.4 wordpress)
  • Revision ID: marco@ceppi.net-20140717183250-sxwd0sn46x1js9fl
[jose] Fixed bug #1309980, which throws an error when WP-FFPC is installed due to a relation with memcached.

Show diffs side-by-side

added added

removed removed

Lines of Context:
200
200
        source .memcache
201
201
 
202
202
        wp plugin install --path=$wp_install_path wp-ffpc
203
 
        sed -i -e "s/'host'=>.*/'host'=>'$CACHE_HOST',/" $wp_install_path/wp-content/plugins/wp-ffpc/wp-ffpc.php
 
203
        sed -i -e "s/'hosts'=>.*/'hosts'=>'$CACHE_HOST:$CACHE_PORT',/" $wp_install_path/wp-content/plugins/wp-ffpc/wp-ffpc.php
 
204
    sed -i "s/memcached/memcache/g" $wp_install_path/wp-content/plugins/wp-ffpc/wp-ffpc.php
204
205
        wp plugin activate --path=$wp_install_path wp-ffpc
205
206
 
206
207
        install -o www-data -g www-data -m 0644 files/charm/wordpress/advanced-cache.php $wp_install_path/wp-content/advanced-cache.php