/usr/lib/security-misc/apt-get-update environment variable timeout_after kill_after support

This commit is contained in:
Patrick Schleizer 2020-01-31 12:17:07 -05:00
parent 0bd0a4a647
commit 829e28aa90
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -18,8 +18,8 @@ sigterm_trap() {
trap "sigterm_trap" SIGTERM SIGINT
timeout_after="240"
kill_after="10"
[ -n "$timeout_after" ] || timeout_after="240"
[ -n "$kill_after" ] || kill_after="10"
timeout \
--kill-after="$kill_after" \