srv/poe_manager/app.py aktualisiert
This commit is contained in:
@@ -495,10 +495,14 @@ def restart_device(mac):
|
|||||||
|
|
||||||
subprocess.Popen(
|
subprocess.Popen(
|
||||||
[
|
[
|
||||||
|
"/bin/bash",
|
||||||
POE_SCRIPT,
|
POE_SCRIPT,
|
||||||
"restart",
|
"restart",
|
||||||
mac
|
mac
|
||||||
],
|
],
|
||||||
|
env={
|
||||||
|
"PATH": "/srv/poe_manager/venv/bin:" + os.environ["PATH"]
|
||||||
|
},
|
||||||
stdout=subprocess.DEVNULL,
|
stdout=subprocess.DEVNULL,
|
||||||
stderr=subprocess.DEVNULL
|
stderr=subprocess.DEVNULL
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user