mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] add nginx -t output to diagnosis
This commit is contained in:
parent
f20ef340dc
commit
2b2676a9c1
1 changed files with 4 additions and 0 deletions
|
@ -42,6 +42,7 @@ import apt.progress
|
|||
from moulinette import msettings, msignals, m18n
|
||||
from moulinette.core import MoulinetteError, init_authenticator
|
||||
from moulinette.utils.log import getActionLogger
|
||||
from moulinette.utils.process import check_output
|
||||
from moulinette.utils.filesystem import read_json, write_to_json
|
||||
from yunohost.app import app_fetchlist, app_info, app_upgrade, app_ssowatconf, app_list, _install_appslist_fetch_cron
|
||||
from yunohost.domain import domain_add, domain_list, get_public_ip, _get_maindomain, _set_maindomain
|
||||
|
@ -589,6 +590,9 @@ def tools_diagnosis(auth, private=False):
|
|||
'swap': '%s (%s free)' % (system['memory']['swap']['total'], system['memory']['swap']['free']),
|
||||
}
|
||||
|
||||
# nginx -t
|
||||
diagnosis['nginx'] = check_output("nginx -t").strip().split("\n")
|
||||
|
||||
# Services status
|
||||
services = service_status()
|
||||
diagnosis['services'] = {}
|
||||
|
|
Loading…
Add table
Reference in a new issue