mirror of https://github.com/rails/rails
Change mysql build command to work when a custom socket is set
This commit is contained in:
parent
81e1c338ff
commit
6017df6a8e
|
@ -205,7 +205,11 @@ namespace :db do
|
|||
desc "Create the MySQL Rails User"
|
||||
task :build_user do
|
||||
if ENV["MYSQL_CODESPACES"]
|
||||
if ENV["MYSQL_SOCK"]
|
||||
mysql_command = "sudo mysql -uroot -S #{ENV["MYSQL_SOCK"]} -e"
|
||||
else
|
||||
mysql_command = "sudo mysql -uroot -proot -e"
|
||||
end
|
||||
else
|
||||
mysql_command = "mysql -uroot -e"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue