V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 50s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 50s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -12,6 +12,24 @@
|
||||
|
||||
guard_sourcing
|
||||
|
||||
|
||||
#######################################
|
||||
# Wrapper for preparing logfile inside chroot.
|
||||
# Globals:
|
||||
# TARGET
|
||||
# Arguments:
|
||||
# 1: Logfile inside chroot
|
||||
# Returns:
|
||||
# 0: on success
|
||||
# ERR_CHROOT_LOGGER
|
||||
#######################################
|
||||
chroot_logger() {
|
||||
declare -r var_logfile="$1"
|
||||
: >| "${TARGET}${var_logfile}" || return "${ERR_CHROOT_LOGGER}"
|
||||
chmod 0600 "${TARGET}${var_logfile}" || "${ERR_CHROOT_LOGGER}"
|
||||
return 0
|
||||
}
|
||||
|
||||
#######################################
|
||||
# Helper Module to generate a Subnet Mask out of an IP in CCDIR Notation.
|
||||
# Arguments:
|
||||
|
||||
Reference in New Issue
Block a user