mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 21:35:55 +01:00
@@ -73,10 +73,10 @@ class CSF(multi.Thread):
|
||||
|
||||
# install required packages for CSF perl and /usr/bin/host
|
||||
if ProcessUtilities.decideDistro() == ProcessUtilities.centos:
|
||||
command = 'yum install bind-utils net-tools perl-libwww-perl.noarch perl-LWP-Protocol-https.noarch perl-GDGraph ipset -y'
|
||||
command = 'yum install bind-utils net-tools perl-libwww-perl.noarch perl-LWP-Protocol-https.noarch perl-GDGraph -y'
|
||||
ProcessUtilities.normalExecutioner(command)
|
||||
elif ProcessUtilities.decideDistro() == ProcessUtilities.ubuntu:
|
||||
command = 'apt-get install dnsutils libwww-perl liblwp-protocol-https-perl libgd-graph-perl net-tools ipset -y'
|
||||
command = 'apt-get install dnsutils libwww-perl liblwp-protocol-https-perl libgd-graph-perl net-tools -y'
|
||||
ProcessUtilities.normalExecutioner(command)
|
||||
command = 'ln -s /bin/systemctl /usr/bin/systemctl'
|
||||
ProcessUtilities.normalExecutioner(command)
|
||||
@@ -280,10 +280,6 @@ class CSF(multi.Thread):
|
||||
elif items.find('PT_LOAD =') > -1 and items.find('=') > -1 and (items[0] != '#'):
|
||||
writeToConf.writelines('PT_LOAD = "0"\n')
|
||||
|
||||
# Enable LF_IPSET for CSF for more efficient ipables rules with ipset
|
||||
elif items.find('LF_IPSET =') > -1 and items.find('=') > -1 and (items[0] != '#'):
|
||||
writeToConf.writelines('LF_IPSET = "1"\n')
|
||||
|
||||
# HTACCESS_LOG is ins main error.log
|
||||
elif items.find('HTACCESS_LOG =') > -1 and items.find('=') > -1 and (items[0] != '#'):
|
||||
writeToConf.writelines('HTACCESS_LOG = "/usr/local/lsws/logs/error.log"\n')
|
||||
|
||||
Reference in New Issue
Block a user