xt_geoip_update: Perform cleanup after successful operation

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>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Daniel Weismüller
2019-10-14 16:47:53 +02:00
committed by Arne Fitzenreiter
parent efa43d82b5
commit 0df1839239

View File

@@ -140,7 +140,6 @@ function main() {
# Convert GeoIP2 to lagacy.
build_legacy || exit $?
return 0
# Remove temporary files.
cleanup || exit $?