diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-11-03 17:05:28 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-11-03 17:05:28 -0200 |
commit | 33183230a42c1e03a551fa543eb7f80e9cc82d72 (patch) | |
tree | d0d890950a47d0d4020e59b20e05df2002279d73 /templates | |
parent | 494241a212d7db9cf576adf9b06c01458e65ecb5 (diff) | |
download | puppet-mysql-33183230a42c1e03a551fa543eb7f80e9cc82d72.tar.gz puppet-mysql-33183230a42c1e03a551fa543eb7f80e9cc82d72.tar.bz2 |
Fix template deprecations
Diffstat (limited to 'templates')
-rw-r--r-- | templates/setmysqlpass.sh.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/setmysqlpass.sh.erb b/templates/setmysqlpass.sh.erb index 372b513..d2894db 100644 --- a/templates/setmysqlpass.sh.erb +++ b/templates/setmysqlpass.sh.erb @@ -10,7 +10,7 @@ DEFAULTS="/etc/mysql/debian.cnf" # Run /usr/bin/mysql --defaults-file=$DEFAULTS <<EOF UPDATE mysql.user SET Password=PASSWORD('$PASSWORD') WHERE User='root' AND Host='localhost'; -UPDATE mysql.user SET Password=PASSWORD('$PASSWORD') WHERE User='root' AND Host='<%= fqdn %>'; +UPDATE mysql.user SET Password=PASSWORD('$PASSWORD') WHERE User='root' AND Host='<%= @fqdn %>'; UPDATE mysql.user SET Password=PASSWORD('$PASSWORD') WHERE User='root' AND Host='127.0.0.1'; FLUSH PRIVILEGES; EOF |