Skip to content

Commit 888ca93

Browse files
committed
percona-server@8.0: remove dynamic caveats
See Homebrew/brew#20135
1 parent d3b786a commit 888ca93

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Formula/p/percona-server@8.0.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,14 @@ def post_install
195195
# Make sure the var/mysql directory exists
196196
(var/"mysql").mkpath
197197

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+
198206
# Don't initialize database, it clashes when testing other MySQL-like implementations.
199207
return if ENV["HOMEBREW_GITHUB_ACTIONS"]
200208

@@ -206,7 +214,7 @@ def post_install
206214
end
207215

208216
def caveats
209-
s = <<~EOS
217+
<<~EOS
210218
We've installed your MySQL database without a root password. To secure it run:
211219
mysql_secure_installation
212220
@@ -215,14 +223,6 @@ def caveats
215223
To connect run:
216224
mysql -u root
217225
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
226226
end
227227

228228
service do

0 commit comments

Comments
 (0)