Filemanager security update.

This commit is contained in:
usmannasir 2018-04-18 15:58:29 +05:00
commit 2533721602
3 changed files with 18 additions and 2 deletions

View File

@ -18,7 +18,7 @@
<!-- Angular JS -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.6/angular.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/angular@1.6.6/angular.min.js"></script>
<script src="{% static 'filemanager/js/fileManager.js' %}"></script>
<!-- Fix for old browsers -->
@ -645,4 +645,4 @@
</div>
</body>
</html>
</html>

View File

@ -4,6 +4,14 @@ rm -f /etc/yum.repos.d/epel.repo
rm -f /etc/yum.repos.d/epel.repo.rpmsave
yum install epel-release -y
#some provider's centos7 template come with incorrect or misconfigured epel.repo
if systemctl is-active named | grep -q 'active'; then
systemctl stop named
systemctl disable named
echo "Disabling named to aviod powerdns conflicts..."
else
echo "named is not installed or active, to next step..."
fi
# above if will check if server has named.service running that occupies port 53 which makes powerdns failed to start
yum clean all
yum update -y
yum install wget which curl -y

View File

@ -4,6 +4,14 @@ rm -f /etc/yum.repos.d/epel.repo
rm -f /etc/yum.repos.d/epel.repo.rpmsave
yum install epel-release -y
#some provider's centos7 template come with incorrect or misconfigured epel.repo
if systemctl is-active named | grep -q 'active'; then
systemctl stop named
systemctl disable named
echo "Disabling named to aviod powerdns conflicts..."
else
echo "named is not installed or active, to next step..."
fi
# above if will check if server has named.service running that occupies port 53 which makes powerdns failed to start
yum clean all
yum update -y
yum install wget which curl -y