logs for le and ssh
Support for letsencrypt and SSH logs added.
This commit is contained in:
parent
4364ed70c4
commit
37526e0e80
1 changed files with 13 additions and 1 deletions
14
plugins/log
14
plugins/log
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue