mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-07-26 06:35:17 -04:00
refactoring
This commit is contained in:
parent
90330a1ec9
commit
81634930fa
1 changed files with 4 additions and 3 deletions
|
@ -9,11 +9,12 @@ set -o errtrace
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
|
pidfile="/run/helper-scripts/security-misc-apt-get-update-pid"
|
||||||
|
|
||||||
write_pid_file() {
|
write_pid_file() {
|
||||||
safe-rm -r -f -- "/run/helper-scripts/security-misc-apt-get-update-pid"
|
safe-rm -r -f -- "$pidfile"
|
||||||
install -m644 /dev/null "/run/helper-scripts/security-misc-apt-get-update-pid"
|
install -m644 /dev/null "$pidfile"
|
||||||
echo "$$" | sponge -- "/run/helper-scripts/security-misc-apt-get-update-pid"
|
echo "$$" | sponge -- "$pidfile"
|
||||||
}
|
}
|
||||||
|
|
||||||
sigterm_trap() {
|
sigterm_trap() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue