File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
lib/Virtualmin/Config/Plugin Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ sub actions {
36
36
37
37
$self -> spin();
38
38
eval {
39
- foreign_require(" init" , " init-lib.pl " );
39
+ foreign_require(" init" );
40
40
if (init::action_status(" mariadb" )) {
41
41
init::enable_at_boot(" mariadb" );
42
42
}
@@ -46,17 +46,10 @@ sub actions {
46
46
else {
47
47
init::enable_at_boot(" mysqld" );
48
48
}
49
- foreign_require(" mysql" , " mysql-lib.pl " );
50
- if (mysql::is_mysql_running()) {
51
- mysql::stop_mysql ();
49
+ foreign_require(" mysql" );
50
+ if (! mysql::is_mysql_running()) {
51
+ mysql::start_mysql ();
52
52
}
53
- my $conf = mysql::get_mysql_config();
54
- my ($sect ) = grep { $_ -> {' name' } eq ' mysqld' } @$conf ;
55
- if ($sect ) {
56
- mysql::save_directive($conf , $sect , " innodb_file_per_table" , [1]);
57
- flush_file_lines($sect -> {' file' });
58
- }
59
- my $err = mysql::start_mysql();
60
53
$self -> done(1);
61
54
};
62
55
if ($@ ) {
You can’t perform that action at this time.
0 commit comments