We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
which svcprop
1 parent 7571672 commit 6c9ed7cCopy full SHA for 6c9ed7c
mysqltuner.pl
@@ -296,8 +296,8 @@ sub mysql_setup {
296
exit 0;
297
}
298
299
- my $svcprop = `which svcprop`;
300
- if ( substr($svcprop, 0, 1) =~ "/" ) {
+ my $svcprop = `which svcprop 2>/dev/null`;
+ if (substr($svcprop, 0, 1) =~ "/") {
301
# We are on solaris
302
(my $mysql_login = `svcprop -p quickbackup/username svc:/network/mysql-quickbackup:default`) =~ s/\s+$//;
303
(my $mysql_pass = `svcprop -p quickbackup/password svc:/network/mysql-quickbackup:default`) =~ s/\s+$//;
0 commit comments