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
|
-
|
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"
|