mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-22 02:17:26 +00:00
whitespace=>tabs
This commit is contained in:
parent
34e821c102
commit
ab36cc8968
@ -41,15 +41,16 @@ def run_checks(rounded_values, env, output, pool):
|
|||||||
run_domain_checks(rounded_values, env, output, pool)
|
run_domain_checks(rounded_values, env, output, pool)
|
||||||
|
|
||||||
def get_ssh_port():
|
def get_ssh_port():
|
||||||
# Returns ssh port
|
# Returns ssh port
|
||||||
output = shell('check_output', ['sshd', '-T'])
|
|
||||||
returnNext = False
|
|
||||||
|
|
||||||
for e in output.split():
|
output = shell('check_output', ['sshd', '-T'])
|
||||||
if returnNext:
|
returnNext = False
|
||||||
return int(e)
|
|
||||||
if e == "port":
|
for e in output.split():
|
||||||
returnNext = True
|
if returnNext:
|
||||||
|
return int(e)
|
||||||
|
if e == "port":
|
||||||
|
returnNext = True
|
||||||
|
|
||||||
def run_services_checks(env, output, pool):
|
def run_services_checks(env, output, pool):
|
||||||
# Check that system services are running.
|
# Check that system services are running.
|
||||||
|
Loading…
Reference in New Issue
Block a user