mirror of
https://github.com/wireadmin/wireadmin
synced 2025-01-23 12:27:00 +00:00
14 lines
173 B
Bash
14 lines
173 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
LOG_DIR="/var/vlogs"
|
|
LOG_FILE="${LOG_DIR}/${1}"
|
|
|
|
if [ ! -f "${LOG_FILE}" ]; then
|
|
echo "Usage: ${0} <filename>"
|
|
exit 1
|
|
fi
|
|
|
|
cat "${LOG_FILE}"
|