mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-01-07 14:01:06 +07:00
/usr/lib/security-misc/apt-get-update environment variable timeout_after kill_after support
This commit is contained in:
parent
0bd0a4a647
commit
829e28aa90
@ -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" \
|
||||
|
Loading…
Reference in New Issue
Block a user