|
|
@ -12,7 +12,9 @@ foreach my $u ($a->users,$a->get('admin')){ |
|
|
|
my $pass = $u->prop('SqlPassword') || ''; |
|
|
|
my $pass = $u->prop('SqlPassword') || ''; |
|
|
|
# Members of the admins group automatically have |
|
|
|
# Members of the admins group automatically have |
|
|
|
# full privileges on MySQL |
|
|
|
# full privileges on MySQL |
|
|
|
if (($a->is_user_in_group($user,'admins')) || ($a->is_user_in_group($user,'mysqladmins'))){ |
|
|
|
if (($a->is_user_in_group($user,'admins')) || |
|
|
|
|
|
|
|
($a->is_user_in_group($user,'mysqladmins')) || |
|
|
|
|
|
|
|
($user eq 'admin')){ |
|
|
|
$login = 'sqladmin'; |
|
|
|
$login = 'sqladmin'; |
|
|
|
$pass = $admpass; |
|
|
|
$pass = $admpass; |
|
|
|
} |
|
|
|
} |
|
|
|