From patchwork Mon Oct 14 14:47:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniel Weismueller X-Patchwork-Id: 2497 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 46sLyV0TLVz42jH for ; Mon, 14 Oct 2019 14:48:02 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 46sLyR4g7jz1jh; Mon, 14 Oct 2019 14:47:59 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 46sLyR3M4yz2yCb; Mon, 14 Oct 2019 14:47:59 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 46sLyQ06FVz2y2r for ; Mon, 14 Oct 2019 14:47:57 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 46sLyP2lhxz1jh; Mon, 14 Oct 2019 14:47:57 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909ed25519; t=1571064477; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6zeDjhSQbVPAFxCuyH3S6CD63AG0cnpL9Nmd/C6AvJc=; b=Us57ayLiBClO3dJvtE/GANhLyjEr8p1qb3kxlq6X05qgd7Cwi5W9IHReyRac+DR+iAY5/c A3HKFiZYi4GJUHBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909rsa; t=1571064477; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6zeDjhSQbVPAFxCuyH3S6CD63AG0cnpL9Nmd/C6AvJc=; b=RyA+k9KPJwEtlSn4+GjXdxYdsjC5pNJWLO10iTjb06LolqJZf16mPoptNx/vYdbIJ6TVfI 3dZhp+LV727EeaudHIRhoqSR8BaJNIXBp/8iugInF37XH/4Ridtz67MiGa6wq8GV+wXWHy b2k1dnN6AtAqONrH2p9Wnnp5GSnEb3AIGt4gp6AhMxR82jPFIC2r5d6G2A74r7J1xhPSoZ mdjNrD/4xFbEu+uyzF+4K++aLypojPBzktjZ+dOw6IJ9rQfuRW3It90htFQ/Gr5GX2TACF zPDUlUwdWubMTmE77tm+xXhGyoMHL93hhuPylVExJ/0KWsfLkMc3/sCfsr6J2g== From: =?utf-8?q?Daniel_Weism=C3=BCller?= To: development@lists.ipfire.org Subject: [PATCH 1/4] xt_geoip_update: Perform cleanup after successful operation Date: Mon, 14 Oct 2019 16:47:53 +0200 Message-Id: <20191014144756.7674-1-daniel.weismueller@ipfire.org> MIME-Version: 1.0 Authentication-Results: mail01.ipfire.org; auth=pass smtp.auth=dweismueller smtp.mailfrom=daniel.weismueller@ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 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" The temporary files were never being cleaned up after the script has finished compiling the database. Signed-off-by: Daniel Weismüller --- src/scripts/xt_geoip_update | 1 - 1 file changed, 1 deletion(-) diff --git a/src/scripts/xt_geoip_update b/src/scripts/xt_geoip_update index 9ea66e006..f3ba8a52e 100644 --- a/src/scripts/xt_geoip_update +++ b/src/scripts/xt_geoip_update @@ -140,7 +140,6 @@ function main() { # Convert GeoIP2 to lagacy. build_legacy || exit $? - return 0 # Remove temporary files. cleanup || exit $?