From patchwork Tue Mar 19 05:46:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 2156 Return-Path: Received: from mail01.ipfire.org (mail01.i.ipfire.org [172.28.1.200]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail01.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web07.i.ipfire.org (Postfix) with ESMTPS id 868E684ECB6 for ; Mon, 18 Mar 2019 18:46:34 +0000 (GMT) Received: from mail01.i.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 44NQBd57x5z50cwr; Mon, 18 Mar 2019 18:46:33 +0000 (GMT) Received: from tuxedo.stevee (213162073003.public.t-mobile.at [213.162.73.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 44NQBb1zMTz50cwr; Mon, 18 Mar 2019 18:46:31 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201801; t=1552934791; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=Mx3mOcvqM9EP7DoWcYTpYbQhFVamOw9IgHcxh05Yv3U=; b=uvQbHJhc2WDqZJf84yfi+heQq6L8wnvc3ahWCm9+hI0tgzYPmtm8aQqACfcjsqdLjL+TaN zVHxm/I9uOf8eGE0zVyIRvzJuKxDbFhpdF4+kXVvjxQq95Y3UNWWGBpqeBgnbAlOez3W/J aUjeH31cB5/i6oEHi3pdlx4LYCQS1+PaYGITtCufw+J1ca6JK1zuDoqhoxRuqaUo9Id7oo cbE9Qa4sxqcH313k4lX+E/ywFL3IJKX1pzJCviTA6nlzkU6hF5Iou0QwET/cAmflUxLtQH U7SXlyEDv0ZJycApJMd+xvLzG94+AJ37tOIiX/ispyR1/X528R/nNHupUkxnVA== 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> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Spamd-Result: default: False [5.00 / 11.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_MISSING_CHARSET(2.50)[]; BROKEN_CONTENT_TYPE(1.50)[]; DKIM_SIGNED(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MID_CONTAINS_FROM(1.00)[]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:~]; ASN(0.00)[asn:8412, ipnet:213.162.64.0/19, country:AT] Authentication-Results: mail01.ipfire.org; auth=pass smtp.auth=stevee smtp.mailfrom=stefan.schantl@ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" 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 --- 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