wireadmin/bin/logs
2023-12-19 13:28:29 +03:30

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}"