~jacekn/charms/trusty/mysql/mysql-storage-bugfix

« back to all changes in this revision

Viewing changes to hooks/master-relation-changed

  • Committer: Charles Butler
  • Date: 2014-04-15 16:30:14 UTC
  • mfrom: (117.1.1 mysql)
  • Revision ID: chuck@dasroot.net-20140415163014-2mh4vxr9zqtfn0w6
Matt Bruzek 2014-04-10 escaping the single quotes for REVOKE REPLICATION SLAVE mysql c...

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#
3
3
# Master side of master/slave replication
4
4
 
5
 
set -e
 
5
set -ex
6
6
 
7
7
. $CHARM_DIR/lib/net.sh
8
8
 
78
78
                         port=3306
79
79
    ;;
80
80
departed)
81
 
    mysql $ROOTARGS -e "REVOKE REPLICATION SLAVE, REPLICATION CLIENT ON *.* FROM `$user`@`$remote_ip`"
 
81
    mysql $ROOTARGS -e "REVOKE REPLICATION SLAVE, REPLICATION CLIENT ON *.* FROM \`$user\`@\`$remote_ip\`"
82
82
    ;;
83
83
broken)
84
84
    # XXX Need some way to tie users to relation ID