V8.02.644.2025.05.31
All checks were successful
Retrieve the DNSSEC status at the time of updating the repository. / build-dnssec-diagram (push) Successful in 30s
All checks were successful
Retrieve the DNSSEC status at the time of updating the repository. / build-dnssec-diagram (push) Successful in 30s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -13,26 +13,26 @@
|
||||
#######################################
|
||||
# Clean Up Wrapper on Trap on 'ERR' and 'EXIT'.
|
||||
# Globals:
|
||||
# ERROR_LOG
|
||||
# KERNEL_INF
|
||||
# KERNEL_SRT
|
||||
# KERNEL_TMP
|
||||
# WORKDIR
|
||||
# LOG_ERROR
|
||||
# VAR_KERNEL_INF
|
||||
# VAR_KERNEL_SRT
|
||||
# VAR_KERNEL_TMP
|
||||
# VAR_WORKDIR
|
||||
# Arguments:
|
||||
# 1 : ${trap_on_exit_code} of trap_on_exit()
|
||||
#######################################
|
||||
clean_up() {
|
||||
declare clean_exit_code="$1"
|
||||
rm -f -- "${KERNEL_INF}"
|
||||
rm -f -- "${KERNEL_SRT}"
|
||||
rm -f -- "${KERNEL_TMP}"
|
||||
rm -f -- "${VAR_KERNEL_INF}"
|
||||
rm -f -- "${VAR_KERNEL_SRT}"
|
||||
rm -f -- "${VAR_KERNEL_TMP}"
|
||||
rm -f /run/lock/ciss_live_builder.lock
|
||||
if (( clean_exit_code == 0 )); then rm -f -- "${ERROR_LOG}"; fi
|
||||
if [[ -f "${WORKDIR}/hosts.allow" ]]; then
|
||||
rm -f "${WORKDIR}/hosts.allow"
|
||||
if (( clean_exit_code == 0 )); then rm -f -- "${LOG_ERROR}"; fi
|
||||
if [[ -f "${VAR_WORKDIR}/hosts.allow" ]]; then
|
||||
rm -f "${VAR_WORKDIR}/hosts.allow"
|
||||
fi
|
||||
if [[ -f "${WORKDIR}/hosts.deny" ]]; then
|
||||
rm -f "${WORKDIR}/hosts.deny"
|
||||
if [[ -f "${VAR_WORKDIR}/hosts.deny" ]]; then
|
||||
rm -f "${VAR_WORKDIR}/hosts.deny"
|
||||
fi
|
||||
}
|
||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||
|
||||
Reference in New Issue
Block a user