diff --git a/mysql/lang/en b/mysql/lang/en index 48c4a8d4d..bb62dc811 100644 --- a/mysql/lang/en +++ b/mysql/lang/en @@ -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 diff --git a/mysql/restart.cgi b/mysql/restart.cgi index 95ed109a7..86aea3865 100755 --- a/mysql/restart.cgi +++ b/mysql/restart.cgi @@ -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(); diff --git a/mysql/start.cgi b/mysql/start.cgi index adb5d0572..bc7c2fd7c 100755 --- a/mysql/start.cgi +++ b/mysql/start.cgi @@ -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); diff --git a/mysql/stop.cgi b/mysql/stop.cgi index 8d023fe72..bcc84eef2 100755 --- a/mysql/stop.cgi +++ b/mysql/stop.cgi @@ -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");