From patchwork Mon Jun 10 01:55:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 2291 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 4EDD68887F0 for ; Sun, 9 Jun 2019 16:55:40 +0100 (BST) Received: from mail01.i.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 45MLT76VdBz5252F; Sun, 9 Jun 2019 16:55:39 +0100 (BST) Received: from tuxedo.stevee (212095005166.public.telering.at [212.95.5.166]) (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 45MLT44hNjz5P2Ck; Sun, 9 Jun 2019 16:55:36 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201904rsa; t=1560095737; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EQKFPq8JkPoXad0uDWolVKiwSupk43BO1wQU3eR0Mpc=; b=cK7+AecOe69pR90RygdHWogZuJWghP11AwJdj3vbopszahnJdSc9ZHlrHTZsUeNRnFlo1I UB3ELVHoVmxcxamnp29A5BrTe+M2T1e2kBs6Wo5AG5B71DQGC7jLDJT7s8FeEQdPnNmx1f lM4hY+5nnjjU0OkfrkY0TsruCtorta2BXZGicHj1OtOZnJKxp7n4s2kkDBzl8ISzTfY94U tXFbUU0u5jPYP/AdtoQ+C6cTmMcifENVIaNcMl8/ZzC645Uov/emsG2HDuFMqCpbckO23c Y1CU6dXgfPG1PVeI8iXThU6pVl8blXagO82/nqk9ll0SOR5Y8rXD2QQ66iDyHQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=201904ed25519; t=1560095737; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EQKFPq8JkPoXad0uDWolVKiwSupk43BO1wQU3eR0Mpc=; b=X62lXFwcKH3pbm1b4OWCKboq81757I8EHIQyK1aVtTMd9xxNgPyp/KsIerGjYsrpw+6u5G kq/+xJyN2nGRusBw== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] convert-ids-modifysids-file: Fix check if the ids is running. Date: Sun, 9 Jun 2019 17:55:34 +0200 Message-Id: <20190609155534.3288-1-stefan.schantl@ipfire.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <59fcf8a541b34638a7084dac2de4b0d583c0aedb.camel@ipfire.org> References: <59fcf8a541b34638a7084dac2de4b0d583c0aedb.camel@ipfire.org> MIME-Version: 1.0 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" X-Spam: Yes Signed-off-by: Stefan Schantl --- config/suricata/convert-ids-modifysids-file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/suricata/convert-ids-modifysids-file b/config/suricata/convert-ids-modifysids-file index adcc10577..f1c2a7b9c 100644 --- a/config/suricata/convert-ids-modifysids-file +++ b/config/suricata/convert-ids-modifysids-file @@ -54,7 +54,7 @@ if (-f $IDS::rulestarball) { # # Check if the IDS should be started. -if($idssettings{"ENABLE_IDS"} eq "on") { +if(&IDS::ids_is_running()) { # Call suricatactrl and reload the rules. &IDS::call_suricatactrl("reload"); }