mirror of
https://github.com/webmin/webmin.git
synced 2026-08-04 15:10:41 +01:00
Actually check ACL for starting and stopping mysql
This commit is contained in:
@@ -919,4 +919,6 @@ ssl_eca=Missing or non-existent SSL CA file
|
||||
ssl_ecertexists=SSL certificate file $1 already exists!
|
||||
ssl_ekeyexists=SSL key file $1 already exists!
|
||||
|
||||
stop_ecannot=You are not allowed to stop or start the MySQL server
|
||||
|
||||
__norefs=1
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
require './mysql-lib.pl';
|
||||
&error_setup($text{'restart_err'});
|
||||
$access{'stop'} || &error($text{'stop_ecannot'});
|
||||
$err = &stop_mysql();
|
||||
&error($err) if ($err);
|
||||
$err = &start_mysql();
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
require './mysql-lib.pl';
|
||||
&error_setup($text{'start_err'});
|
||||
$access{'stop'} || &error($text{'stop_ecannot'});
|
||||
$err = &start_mysql();
|
||||
&error($err) if ($err);
|
||||
sleep(3);
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
require './mysql-lib.pl';
|
||||
&error_setup($text{'stop_err'});
|
||||
$access{'stop'} || &error($text{'stop_ecannot'});
|
||||
$err = &stop_mysql();
|
||||
&error($err) if ($err);
|
||||
&webmin_log("stop");
|
||||
|
||||
Reference in New Issue
Block a user