Method: Bard::Provision::MySQL#call
- Defined in:
- lib/bard/provision/mysql.rb
#call ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/bard/provision/mysql.rb', line 4 def call print "MySQL:" if !mysql_responding? print " Installing," provision_server.run! [ "sudo apt-get install -y mysql-server", %(sudo mysql -uroot -e "ALTER USER \\"'\\"root\\"'\\"@\\"'\\"localhost\\"'\\" IDENTIFIED WITH mysql_native_password BY \\"'\\"\\"'\\", \\"'\\"root\\"'\\"@\\"'\\"localhost\\"'\\" PASSWORD EXPIRE NEVER; FLUSH PRIVILEGES;"), ].join("; "), home: true end puts " ✓" end |