From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] core 130: Remove snort settings dir after convert has run. Date: Mon, 18 Mar 2019 19:46:25 +0100 Message-ID: <20190318184625.3095-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8895205261292465146==" List-Id: --===============8895205261292465146== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable When all settings have been converted, the files and directory are not needed anymore. If they will be left and at a later time an backup will be restored, the converter will be started by the backup script again and would be restore tho= se old snort settings and replace the current IPS settings. Signed-off-by: Stefan Schantl --- config/rootfiles/core/130/update.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/rootfiles/core/130/update.sh b/config/rootfiles/core/130/= update.sh index d33321c32..f3dc0d85a 100644 --- a/config/rootfiles/core/130/update.sh +++ b/config/rootfiles/core/130/update.sh @@ -74,6 +74,9 @@ ldconfig # Migrate snort configuration to suricata /usr/sbin/convert-snort =20 +# Remove snort settings +rm -rvf /var/ipfire/snort + # Start services /etc/init.d/collectd restart /etc/init.d/firewall restart --=20 2.20.1 --===============8895205261292465146==--