debian-cis/lib/common.sh
2016-04-01 14:36:42 +02:00

8 lines
201 B
Bash

# CIS Debian 7 Hardening common functions
logger() {
test -z "$SCRIPT_NAME" && SCRIPT_NAME=$(basename $0)
/usr/bin/logger -i -t "$SCRIPT_NAME" -p "user.info" "$*"
test -t 1 && echo "$*"
}