Need root access
This commit is contained in:
6
ufw.awk
6
ufw.awk
@@ -7,6 +7,12 @@
|
|||||||
# Give options to process only a certain number of day's log
|
# Give options to process only a certain number of day's log
|
||||||
# Check if mawk is available -> if yes, use that
|
# Check if mawk is available -> if yes, use that
|
||||||
|
|
||||||
|
if [[ "$(id -u)" != "0" ]]
|
||||||
|
then
|
||||||
|
echo "Need root access to check /var/log/ufw.log file"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Since changing language improves performance
|
# Since changing language improves performance
|
||||||
LC_ALL=C
|
LC_ALL=C
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user