Commit 23c1c188 authored by ale's avatar ale

Provide full path to smartctl

The PATH may not be set properly (could also have fixed the PATH...)
parent 944bdbd1
Pipeline #2947 failed with stage
in 180 minutes and 9 seconds
......@@ -123,7 +123,7 @@ def smart_ctl(*args, check=True):
"""
try:
return subprocess.run(
['smartctl', *args], stdout=subprocess.PIPE, check=check
['/usr/sbin/smartctl', *args], stdout=subprocess.PIPE, check=check
).stdout.decode('utf-8')
except subprocess.CalledProcessError as e:
return e.output.decode('utf-8')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment