summaryrefslogtreecommitdiffstats
path: root/lib/container/top
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xlib/container/top2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/container/top b/lib/container/top
index 7e757c8..4978568 100755
--- a/lib/container/top
+++ b/lib/container/top
@@ -68,7 +68,7 @@ Usage ()
Parameters "${@}"
DELAY="${DELAY:-1}"
-HOST="$(hostname -f)"
+HOST="$(hostname -f 2> /dev/null || hostname)"
# Pre hooks
for FILE in "${HOOKS}/pre-${COMMAND}".* "${HOOKS}/${NAME}.pre-${COMMAND}"