File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,14 @@ def post_install
195
195
# Make sure the var/mysql directory exists
196
196
( var /"mysql" ) . mkpath
197
197
198
+ if ( my_cnf = [ "/etc/my.cnf" , "/etc/mysql/my.cnf" ] . find { |x | File . exist? x } )
199
+ opoo <<~EOS
200
+
201
+ A "#{ my_cnf } " from another install may interfere with a Homebrew-built
202
+ server starting up correctly.
203
+ EOS
204
+ end
205
+
198
206
# Don't initialize database, it clashes when testing other MySQL-like implementations.
199
207
return if ENV [ "HOMEBREW_GITHUB_ACTIONS" ]
200
208
@@ -206,7 +214,7 @@ def post_install
206
214
end
207
215
208
216
def caveats
209
- s = <<~EOS
217
+ <<~EOS
210
218
We've installed your MySQL database without a root password. To secure it run:
211
219
mysql_secure_installation
212
220
@@ -215,14 +223,6 @@ def caveats
215
223
To connect run:
216
224
mysql -u root
217
225
EOS
218
- if ( my_cnf = [ "/etc/my.cnf" , "/etc/mysql/my.cnf" ] . find { |x | File . exist? x } )
219
- s += <<~EOS
220
-
221
- A "#{ my_cnf } " from another install may interfere with a Homebrew-built
222
- server starting up correctly.
223
- EOS
224
- end
225
- s
226
226
end
227
227
228
228
service do
You can’t perform that action at this time.
0 commit comments