mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 23:36:11 +01:00
restart mysql
This commit is contained in:
@@ -400,7 +400,6 @@ def getMysqlstatus(request):
|
|||||||
def restartMySQL(request):
|
def restartMySQL(request):
|
||||||
try:
|
try:
|
||||||
userID = request.session['userID']
|
userID = request.session['userID']
|
||||||
finalData = mysqlUtilities.restartMySQL()
|
|
||||||
currentACL = ACLManager.loadedACL(userID)
|
currentACL = ACLManager.loadedACL(userID)
|
||||||
|
|
||||||
if currentACL['admin'] == 1:
|
if currentACL['admin'] == 1:
|
||||||
@@ -410,6 +409,8 @@ def restartMySQL(request):
|
|||||||
|
|
||||||
data = {}
|
data = {}
|
||||||
|
|
||||||
|
finalData = mysqlUtilities.restartMySQL()
|
||||||
|
|
||||||
data['status'] = finalData[0]
|
data['status'] = finalData[0]
|
||||||
data['error_message'] = finalData[1]
|
data['error_message'] = finalData[1]
|
||||||
json_data = json.dumps(data)
|
json_data = json.dumps(data)
|
||||||
|
|||||||
Reference in New Issue
Block a user