Permalink
Browse files

Enable CSF/LFD firewall in NEMS 1.5

  • Loading branch information...
NEMS Linux
NEMS Linux committed Dec 13, 2018
1 parent 570e376 commit 9b55f8ff23d17a90058c3f56e5168514c97ea927
Showing with 18 additions and 0 deletions.
  1. +15 −0 build/028-csf
  2. +3 −0 nems-upgrade/1.4.1-1.5
@@ -0,0 +1,15 @@
#!/bin/bash

## Install CSF/LFD
cd /usr/src
wget -O /tmp/csf.tgz https://download.configserver.com/csf.tgz
tar -xzf /tmp/csf.tgz
cd csf
sh install.sh


## Add our default configuration
cp -f /root/nems/nems-migrator/data/1.5/csf/* /etc/csf/

## Start the firewall
csf -r
@@ -14,6 +14,9 @@ if [[ "$ver" == "1.4.1" ]]; then
apt update && apt -y upgrade
apt -y dist-upgrade

## Install CSF/LFD
/root/nems/nems-admin/build/028-csf

## Upgrade PHP from 7.0 to 7.2
echo "Removing PHP 7.0..." && apt -y purge php7.0* && echo "Done removing PHP 7.0." && /root/nems/nems-admin/build/036-php72

0 comments on commit 9b55f8f

Please sign in to comment.