logs for le and ssh

Support for letsencrypt and SSH logs added.
This commit is contained in:
Cristhian Martínez Ochoa 2019-12-20 07:57:54 -07:00
parent 4364ed70c4
commit 37526e0e80

View file

@ -2,7 +2,7 @@
# View logs in real time Plugins
# Syntax: log <domain> <option>
# Options: -wp, -error, -mail, -php o -fpm, -mysql, -only-error
# Options: -wp, -error, -mail, -php o -fpm, -mysql, -only-error, -le, -ssh
# Arguments: -lines
# Notes: If no domain or option is entered, access logs are displayed.
@ -45,6 +45,18 @@ elif [[ -n $mysql ]]; then
else
error
fi
elif [[ -n $le ]]; then
if [[ -a /var/log/letsencrypt/letsencrypt.log ]]; then
sudo tail -f --lines=$clines /var/log/letsencrypt/letsencrypt.log
else
error
fi
elif [[ -n $ssh ]]; then
if [[ -a /var/log/auth.log ]]; then
sudo tail -f --lines=$clines /var/log/auth.log
else
error
fi
# Turn On/Off Access Logs