Yuvipanda has uploaded a new change for review. https://gerrit.wikimedia.org/r/222265
Change subject: labstore: Escape grants properly ...................................................................... labstore: Escape grants properly Bug: T101758 Change-Id: Ie492d4cf7ead7128d43f53444ff2c8ba6974430b --- M modules/labstore/files/replica-addusers.pl 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/65/222265/1 diff --git a/modules/labstore/files/replica-addusers.pl b/modules/labstore/files/replica-addusers.pl index 4daa9cf..7ea52f2 100755 --- a/modules/labstore/files/replica-addusers.pl +++ b/modules/labstore/files/replica-addusers.pl @@ -127,9 +127,9 @@ foreach my $dbn (keys %dbc) { print " [$dbn]"; $dbc{$dbn}->do("grant usage on *.* to $mysqlusr\@'\%' identified by '$password';"); - $dbc{$dbn}->do("grant select, show view on `\%_p`.* to $mysqlusr\@'\%';"); + $dbc{$dbn}->do("grant select, show view on `\%\_p`.* to $mysqlusr\@'\%';"); $dbc{$dbn}->do("grant show view on *.* to $mysqlusr\@'\%';"); - $dbc{$dbn}->do("grant all privileges on `${mysqlusr}__\%`.* to $mysqlusr\@'\%' with grant option;"); + $dbc{$dbn}->do("grant all privileges on `${mysqlusr}\_\_\%`.* to $mysqlusr\@'\%' with grant option;"); } print "\n"; open GRANTS, ">$grants" and close GRANTS; -- To view, visit https://gerrit.wikimedia.org/r/222265 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie492d4cf7ead7128d43f53444ff2c8ba6974430b Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Yuvipanda <yuvipa...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits