[1/4] xt_geoip_update: Perform cleanup after successful operation

Message ID 20191014144756.7674-1-daniel.weismueller@ipfire.org
State Staged
Commit 0df1839239a2beb0f1d4dc3475c35143280abff2
Headers show
Series
  • [1/4] xt_geoip_update: Perform cleanup after successful operation
Related show

Commit Message

Daniel Weismüller Oct. 14, 2019, 2:47 p.m. UTC
The temporary files were never being cleaned up after the script
has finished compiling the database.

Signed-off-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
---
 src/scripts/xt_geoip_update | 1 -
 1 file changed, 1 deletion(-)

Patch

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 $?