mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] network check
This commit is contained in:
parent
7f711ca774
commit
6456bb8b61
1 changed files with 0 additions and 6 deletions
|
@ -154,12 +154,6 @@ def monitor_network(units=None, human_readable=False):
|
||||||
glances = _get_glances_api()
|
glances = _get_glances_api()
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
cmd_check_smtp = os.system('/bin/nc -z -w1 yunohost.org 25')
|
|
||||||
if cmd_check_smtp == 0:
|
|
||||||
smtp_check = m18n.n('network_check_smtp_ok')
|
|
||||||
else:
|
|
||||||
smtp_check = m18n.n('network_check_smtp_ko')
|
|
||||||
|
|
||||||
if units is None:
|
if units is None:
|
||||||
units = ['check', 'usage', 'infos']
|
units = ['check', 'usage', 'infos']
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue