Actually check ACL for starting and stopping mysql

This commit is contained in:
Jamie Cameron
2026-08-03 10:35:30 -07:00
parent 42dde813d8
commit fd07e5040a
4 changed files with 5 additions and 0 deletions
+2
View File
@@ -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
+1
View File
@@ -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();
+1
View File
@@ -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);
+1
View File
@@ -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");