[Rt-commit] r7202 - rt/branches/3.7-EXPERIMENTAL-TUNIS/etc
ruz at bestpractical.com
ruz at bestpractical.com
Thu Mar 8 15:54:04 EST 2007
Author: ruz
Date: Thu Mar 8 15:54:01 2007
New Revision: 7202
Modified:
rt/branches/3.7-EXPERIMENTAL-TUNIS/etc/acl.mysql
Log:
* add debug messages
Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/etc/acl.mysql
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/etc/acl.mysql (original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/etc/acl.mysql Thu Mar 8 15:54:01 2007
@@ -4,8 +4,16 @@
my $db_rthost = RT->Config->Get('DatabaseRTHost');
my $db_user = RT->Config->Get('DatabaseUser');
my $db_pass = RT->Config->Get('DatabasePassword');
- return () if !$db_user || $db_user eq 'root';
- return (
+ unless ( $db_user ) {
+ print STDERR "DatabaseUser option is not defined or empty. Skipping...\n";
+ return;
+ }
+ if ( $db_user eq 'root' ) {
+ print STDERR "DatabaseUser is root. Skipping...\n";
+ return;
+ }
+ print "Granting access to $db_user\@'$db_rthost' on $db_name.\n";
+ return (
"USE mysql;",
"DELETE FROM user WHERE user = '$db_user';",
"DELETE FROM db where db = '$db_name';",
More information about the Rt-commit
mailing list