mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-04-20 12:45:49 -04:00
refactoring
This commit is contained in:
parent
90330a1ec9
commit
81634930fa
@ -9,11 +9,12 @@ set -o errtrace
|
||||
set -o pipefail
|
||||
|
||||
export LC_ALL=C
|
||||
pidfile="/run/helper-scripts/security-misc-apt-get-update-pid"
|
||||
|
||||
write_pid_file() {
|
||||
safe-rm -r -f -- "/run/helper-scripts/security-misc-apt-get-update-pid"
|
||||
install -m644 /dev/null "/run/helper-scripts/security-misc-apt-get-update-pid"
|
||||
echo "$$" | sponge -- "/run/helper-scripts/security-misc-apt-get-update-pid"
|
||||
safe-rm -r -f -- "$pidfile"
|
||||
install -m644 /dev/null "$pidfile"
|
||||
echo "$$" | sponge -- "$pidfile"
|
||||
}
|
||||
|
||||
sigterm_trap() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user