mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 13:56:01 +01:00
ftp fix for ubuntu
This commit is contained in:
@@ -12,6 +12,7 @@ import psutil
|
||||
import shlex
|
||||
import socket
|
||||
from plogical.acl import ACLManager
|
||||
import os
|
||||
# Create your views here.
|
||||
|
||||
def serverStatusHome(request):
|
||||
@@ -271,6 +272,11 @@ def servicesAction(request):
|
||||
return HttpResponse(final_json)
|
||||
|
||||
else:
|
||||
if service == 'pure-ftpd':
|
||||
if os.path.exists("/etc/lsb-release"):
|
||||
service = 'pure-ftpd-mysql'
|
||||
else:
|
||||
service = 'pure-ftpd'
|
||||
|
||||
command = 'sudo systemctl %s %s' % (action, service)
|
||||
cmd = shlex.split(command)
|
||||
|
||||
Reference in New Issue
Block a user