suitmymind-ubuntu-machine 0.4.6 → 0.4.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,16 +49,9 @@ namespace :mysql do
49
49
  task :install, :roles => :db do
50
50
  db_root_password = Capistrano::CLI.ui.ask("Choose a MySQL root password : ")
51
51
 
52
- # set a default dummy password for the root user so the installer do not ask interactively for a password
53
- put render("my.cnf", binding), ".my.cnf"
54
- sudo "mv .my.cnf /root"
55
- sudo "chown root:root /root/.my.cnf"
56
-
52
+ run "export DEBIAN_FRONTEND=noninteractive"
57
53
  sudo "aptitude install -y mysql-server mysql-client libmysqlclient15-dev"
58
- run "mysqladmin -u root password #{db_root_password}"
59
-
60
- # remove the dummy password
61
- sudo "rm /root/.my.cnf"
54
+ run "mysqladmin -u root password #{db_root_password}"
62
55
  end
63
56
 
64
57
  desc "Ask for a MySQL user and change his password"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suitmymind-ubuntu-machine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Balthazar