MDEV-4068 rpm scriptlet chown command dangerous

add --mysqld option to my_print_defaults
change server-postin script to use that
This commit is contained in:
Sergei Golubchik
2013-03-06 09:32:13 +01:00
parent 62b9be6542
commit 3bfd88d1d6
9 changed files with 63 additions and 42 deletions

View File

@ -53,7 +53,7 @@ GetOptions(\%opt,
$opt{'help'} and usage();
unless (@ARGV) {
my $defaults = `my_print_defaults mysqld mariadb`;
my $defaults = `my_print_defaults --mysqld`;
my $datadir = ($defaults =~ m/--datadir=(.*)/g)[-1];
if (!$datadir or $opt{i}) {