19 lines
243 B
Bash
19 lines
243 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
function info {
|
||
|
echo "[${HOSTNAME}] [INFO] $@"
|
||
|
}
|
||
|
|
||
|
function debug {
|
||
|
echo "[${HOSTNAME}] [DEBUG] $@"
|
||
|
}
|
||
|
|
||
|
function error {
|
||
|
echo "[${HOSTNAME}] [ERROR] $@"
|
||
|
}
|
||
|
|
||
|
function error {
|
||
|
echo "[${HOSTNAME}] [FATAL] $@"
|
||
|
exit 1
|
||
|
}
|