restart mysql
This commit is contained in:
parent
94733d206c
commit
6778ad1eaa
|
|
@ -400,7 +400,6 @@ def getMysqlstatus(request):
|
|||
def restartMySQL(request):
|
||||
try:
|
||||
userID = request.session['userID']
|
||||
finalData = mysqlUtilities.restartMySQL()
|
||||
currentACL = ACLManager.loadedACL(userID)
|
||||
|
||||
if currentACL['admin'] == 1:
|
||||
|
|
@ -410,6 +409,8 @@ def restartMySQL(request):
|
|||
|
||||
data = {}
|
||||
|
||||
finalData = mysqlUtilities.restartMySQL()
|
||||
|
||||
data['status'] = finalData[0]
|
||||
data['error_message'] = finalData[1]
|
||||
json_data = json.dumps(data)
|
||||
|
|
|
|||
Loading…
Reference in New Issue