mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +01:00
Option to choose number of MySQL Instances!
This commit is contained in:
@@ -293,11 +293,8 @@ def servicesAction(request):
|
||||
return HttpResponse(final_json)
|
||||
|
||||
else:
|
||||
|
||||
if service == "lsws":
|
||||
command = "sudo /usr/local/lsws/bin/lswsctrl %s" % (action)
|
||||
else:
|
||||
command = 'sudo systemctl %s %s' % (action, service)
|
||||
|
||||
command = 'sudo systemctl %s %s' % (action, service)
|
||||
cmd = shlex.split(command)
|
||||
res = subprocess.call(cmd)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user