public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] core 130: Remove snort settings dir after convert has run.
@ 2019-03-18 18:46 Stefan Schantl
  2019-03-18 18:47 ` Michael Tremer
  0 siblings, 1 reply; 14+ messages in thread
From: Stefan Schantl @ 2019-03-18 18:46 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 917 bytes --]

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 those
old snort settings and replace the current IPS settings.

Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
---
 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
 
+# Remove snort settings
+rm -rvf /var/ipfire/snort
+
 # Start services
 /etc/init.d/collectd restart
 /etc/init.d/firewall restart
-- 
2.20.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2019-03-18 19:33 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-18 18:46 [PATCH] core 130: Remove snort settings dir after convert has run Stefan Schantl
2019-03-18 18:47 ` Michael Tremer
2019-03-18 18:56   ` Stefan Schantl
2019-03-18 18:57     ` Michael Tremer
2019-03-18 19:04       ` Stefan Schantl
2019-03-18 19:05         ` Michael Tremer
2019-03-18 19:11           ` Stefan Schantl
2019-03-18 19:12             ` Michael Tremer
2019-03-18 19:15               ` Stefan Schantl
2019-03-18 19:15                 ` Michael Tremer
2019-03-18 19:20               ` Horace Michael
2019-03-18 19:22                 ` Michael Tremer
2019-03-18 19:31                 ` Stefan Schantl
2019-03-18 19:33               ` [PATCH] Core 130: Remove files after convert-snort has been launched Stefan Schantl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox