diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-11-07 15:34:02 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-11-07 15:34:02 -0200 |
commit | cdb4163aeb318ae9e4478804c5ea23fc079c0c5f (patch) | |
tree | f5b6c9a57d5d70fdd31bac70a0d477bf3f1abe8b | |
parent | debde9c11b55b92b9712802f7abc7916ef6dc24b (diff) | |
download | puppet-mysql-cdb4163aeb318ae9e4478804c5ea23fc079c0c5f.tar.gz puppet-mysql-cdb4163aeb318ae9e4478804c5ea23fc079c0c5f.tar.bz2 |
Password field rename to authentication_string in some implementations
-rw-r--r-- | templates/setmysqlpass.sh.erb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/setmysqlpass.sh.erb b/templates/setmysqlpass.sh.erb index 6e700f6..95946b0 100644 --- a/templates/setmysqlpass.sh.erb +++ b/templates/setmysqlpass.sh.erb @@ -9,9 +9,9 @@ DEFAULTS="/etc/mysql/debian.cnf" # Run /usr/bin/mysql --defaults-file=$DEFAULTS <<EOF -UPDATE mysql.user SET <%= @password_string %>('$PASSWORD') WHERE User='root' AND Host='localhost'; -UPDATE mysql.user SET <%= @password_string %>('$PASSWORD') WHERE User='root' AND Host='<%= @fqdn %>'; -UPDATE mysql.user SET <%= @password_string %>('$PASSWORD') WHERE User='root' AND Host='127.0.0.1'; -UPDATE mysql.user SET <%= @password_string %>('$PASSWORD') WHERE User='root' AND Host='::1'; +UPDATE mysql.user SET <%= @authentication_string %>('$PASSWORD') WHERE User='root' AND Host='localhost'; +UPDATE mysql.user SET <%= @authentication_string %>('$PASSWORD') WHERE User='root' AND Host='<%= @fqdn %>'; +UPDATE mysql.user SET <%= @authentication_string %>('$PASSWORD') WHERE User='root' AND Host='127.0.0.1'; +UPDATE mysql.user SET <%= @authentication_string %>('$PASSWORD') WHERE User='root' AND Host='::1'; FLUSH PRIVILEGES; EOF |