2015-07-02 14:04:14 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
function info {
|
|
|
|
echo "[${HOSTNAME}] [INFO] $@"
|
|
|
|
}
|
|
|
|
|
|
|
|
function debug {
|
|
|
|
echo "[${HOSTNAME}] [DEBUG] $@"
|
|
|
|
}
|
|
|
|
|
|
|
|
function error {
|
2015-07-13 09:02:17 +02:00
|
|
|
echo "[${HOSTNAME}] [ERROR] $@" >&2
|
2015-07-02 14:04:14 +02:00
|
|
|
}
|
|
|
|
|
2015-07-04 18:45:36 +02:00
|
|
|
function fatal {
|
2015-07-13 09:02:17 +02:00
|
|
|
echo "[${HOSTNAME}] [FATAL] $@" >&2
|
2015-07-02 14:04:14 +02:00
|
|
|
exit 1
|
|
|
|
}
|