mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 14:26:16 +01:00
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
<div id="page-title">
|
<div id="page-title">
|
||||||
<h2>{% trans "Rspamd Configurations!" %} -
|
<h2>{% trans "Rspamd Configurations!" %} -
|
||||||
</h2>
|
</h2>
|
||||||
<p>{% trans "On this page you can configure RSPAMD settings." %}</p>
|
<p>{% trans "On this page you can configure Rspamd settings." %}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div ng-controller="Rspamd" class="example-box-wrapper">
|
<div ng-controller="Rspamd" class="example-box-wrapper">
|
||||||
@@ -26,20 +26,21 @@
|
|||||||
<div style="width: 100%; margin: 0 auto">
|
<div style="width: 100%; margin: 0 auto">
|
||||||
|
|
||||||
<div ng-hide="uninstallbutton" class="col-lg-3" style="float: left">
|
<div ng-hide="uninstallbutton" class="col-lg-3" style="float: left">
|
||||||
<button type="button" data-toggle="modal" data-target="#ViewRspamdlog" ng-click="FetchRspamdLog()"
|
<button type="button" data-toggle="modal" data-target="#ViewRspamdlog"
|
||||||
class="btn btn-primaryb btn-lg btn-block">{% trans "View Rsmapd Log" %}</button>
|
ng-click="FetchRspamdLog()"
|
||||||
|
class="btn btn-primaryb btn-lg btn-block">{% trans "View Rspamd Logs" %}</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div ng-hide="uninstallbutton" class="col-lg-2" style="float: left">
|
<div ng-hide="uninstallbutton" class="col-lg-3" style="float: left">
|
||||||
|
|
||||||
<button type="button" data-toggle="modal" data-target="#UninstallRspamdmodal"
|
<button type="button" data-toggle="modal" data-target="#UninstallRspamdmodal"
|
||||||
class="btn btn-danger btn-lg btn-block">{% trans "uninstall." %}</button>
|
class="btn btn-danger btn-lg btn-block">{% trans "Un-install Rspamd" %}</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div ng-hide="uninstallbutton" class="col-lg-2" style="float: left">
|
<div ng-hide="uninstallbutton" class="col-lg-6" style="float: left">
|
||||||
|
|
||||||
<button type="button" ng-click="RestartRspamd()"
|
<button type="button" ng-click="RestartRspamd()"
|
||||||
class="btn btn-gray btn-lg btn-block">{% trans "Restart" %}</button>
|
class="btn btn-gray btn-lg btn-block">{% trans "Restart Rspamd and CLAMAV" %}</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -164,8 +165,11 @@
|
|||||||
<!-----------------------------------------ClamAv--------------------------->
|
<!-----------------------------------------ClamAv--------------------------->
|
||||||
<div style="padding: 2%" class="col-md-12">
|
<div style="padding: 2%" class="col-md-12">
|
||||||
<h3 class="content-box-header">
|
<h3 class="content-box-header">
|
||||||
{% trans "ClamAV" %}
|
{% trans "ClamAV - This is CLAMV Configurations in Rspamd" %}
|
||||||
</h3>
|
</h3>
|
||||||
|
<p style="margin: 1%">
|
||||||
|
<strong>Warning</strong> {% trans "this is advanced settings, do not change if you don't know what you are doing" %}.
|
||||||
|
</p>
|
||||||
<form action="/" id="createPackages" class="form-horizontal bordered-row">
|
<form action="/" id="createPackages" class="form-horizontal bordered-row">
|
||||||
|
|
||||||
<div ng-hide="phpDetailsBox" class="form-group">
|
<div ng-hide="phpDetailsBox" class="form-group">
|
||||||
@@ -263,6 +267,10 @@
|
|||||||
<img ng-hide="CLamAVLoading"
|
<img ng-hide="CLamAVLoading"
|
||||||
src="/static/images/loading.gif">
|
src="/static/images/loading.gif">
|
||||||
</h3>
|
</h3>
|
||||||
|
<p style="margin: 1%">
|
||||||
|
<strong>Warning</strong> {% trans "this is advanced settings, do not change if you don't know what you are doing" %}.
|
||||||
|
</p>
|
||||||
|
|
||||||
<form action="/" id="createPackages" class="form-horizontal bordered-row">
|
<form action="/" id="createPackages" class="form-horizontal bordered-row">
|
||||||
<div ng-hide="phpDetailsBox" class="form-group">
|
<div ng-hide="phpDetailsBox" class="form-group">
|
||||||
<label class="col-sm-4 control-label">TCPSocket</label>
|
<label class="col-sm-4 control-label">TCPSocket</label>
|
||||||
@@ -330,9 +338,13 @@
|
|||||||
<!-----------------------------------------postfix--------------------------->
|
<!-----------------------------------------postfix--------------------------->
|
||||||
<div style="padding: 2%" class="col-md-12">
|
<div style="padding: 2%" class="col-md-12">
|
||||||
<h3 class="content-box-header">
|
<h3 class="content-box-header">
|
||||||
{% trans "Postfix" %}<img ng-hide="postfixLoading"
|
{% trans "Postfix Configurations for Rspamd" %}<img ng-hide="postfixLoading"
|
||||||
src="/static/images/loading.gif">
|
src="/static/images/loading.gif">
|
||||||
</h3>
|
</h3>
|
||||||
|
<p style="margin: 1%">
|
||||||
|
<strong>Warning</strong> {% trans "this is advanced settings, do not change if you don't know what you are doing" %}.
|
||||||
|
</p>
|
||||||
|
|
||||||
<form action="/" id="createPackages" class="form-horizontal bordered-row">
|
<form action="/" id="createPackages" class="form-horizontal bordered-row">
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@@ -387,6 +399,10 @@
|
|||||||
<h3 class="content-box-header">
|
<h3 class="content-box-header">
|
||||||
{% trans "Redis" %}<img ng-hide="RedisLoading" src="/static/images/loading.gif">
|
{% trans "Redis" %}<img ng-hide="RedisLoading" src="/static/images/loading.gif">
|
||||||
</h3>
|
</h3>
|
||||||
|
<p style="margin: 1%">
|
||||||
|
<strong>Warning</strong> {% trans "this is advanced settings, do not change if you don't know what you are doing" %}.
|
||||||
|
</p>
|
||||||
|
|
||||||
<form action="/" id="createPackages" class="form-horizontal bordered-row">
|
<form action="/" id="createPackages" class="form-horizontal bordered-row">
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@@ -489,7 +505,8 @@
|
|||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<textarea ng-model="RspamdlogsData" class="form-control" rows="30">{{ Rspamdlogs }}</textarea>
|
<textarea ng-model="RspamdlogsData" class="form-control"
|
||||||
|
rows="30">{{ Rspamdlogs }}</textarea>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
|
|||||||
@@ -252,6 +252,9 @@ class InstallCyberPanel:
|
|||||||
command = 'dnf install lsphp71* lsphp72* lsphp73* lsphp74* lsphp80* --exclude lsphp73-pecl-zip --exclude *imagick* -y'
|
command = 'dnf install lsphp71* lsphp72* lsphp73* lsphp74* lsphp80* --exclude lsphp73-pecl-zip --exclude *imagick* -y'
|
||||||
subprocess.call(command, shell=True)
|
subprocess.call(command, shell=True)
|
||||||
|
|
||||||
|
command = 'dnf install lsphp81* --exclude *imagick* -y'
|
||||||
|
subprocess.call(command, shell=True)
|
||||||
|
|
||||||
if self.distro == openeuler:
|
if self.distro == openeuler:
|
||||||
command = 'dnf install lsphp71* lsphp72* lsphp73* lsphp74* lsphp80* -y'
|
command = 'dnf install lsphp71* lsphp72* lsphp73* lsphp74* lsphp80* -y'
|
||||||
subprocess.call(command, shell=True)
|
subprocess.call(command, shell=True)
|
||||||
|
|||||||
@@ -907,7 +907,6 @@ Automatic backup failed for %s on %s.
|
|||||||
|
|
||||||
command = 'chattr -R -i /home/%s/incbackup/' % (website.domain)
|
command = 'chattr -R -i /home/%s/incbackup/' % (website.domain)
|
||||||
ProcessUtilities.executioner(command)
|
ProcessUtilities.executioner(command)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
command = 'chattr -R -i /home/%s/' % (website.domain)
|
command = 'chattr -R -i /home/%s/' % (website.domain)
|
||||||
ProcessUtilities.executioner(command)
|
ProcessUtilities.executioner(command)
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/local/CyberCP/bin/python
|
#!/usr/local/CyberCP/bin/python
|
||||||
|
import html
|
||||||
import os
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
import sys
|
import sys
|
||||||
|
|||||||
Reference in New Issue
Block a user