hardening : building basic configuration

This commit is contained in:
thibault.dewailly
2016-04-01 09:52:39 +02:00
parent 9a5e962cd4
commit 08da17be24
5 changed files with 101 additions and 14 deletions

View File

@ -2,6 +2,6 @@
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) $*"
/usr/bin/logger -i -t "$SCRIPT_NAME" -p "user.info" "$*"
test -t 1 && echo "$*"
}