mirror of
https://github.com/ovh/debian-cis.git
synced 2025-06-22 18:53:42 +02:00
Added basic Configuration files and skeleton scripts
This commit is contained in:
7
lib/common.sh
Normal file
7
lib/common.sh
Normal file
@ -0,0 +1,7 @@
|
||||
# CIS Debian 7 Hardening common functions
|
||||
|
||||
logger() {
|
||||
test -z "$SCRIPT_NAME" && SCRIPT_NAME=$(basename $0)
|
||||
logger -i -t "$SCRIPT_NAME" -p "user.info" "$(date +%Y.%m.%d-%H:%M:%S) $*"
|
||||
test -t 1 && echo "$(date +%Z-%Y.%m.%d-%H:%M:%S) $*"
|
||||
}
|
Reference in New Issue
Block a user