Add a daemon-reload command after madmail is first installed
This commit is contained in:
parent
8c64711e1c
commit
2ecc78f934
1 changed files with 6 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import pexpect
|
||||
import json
|
||||
from app import app
|
||||
from subprocess import run
|
||||
|
||||
def run_madmail_installer():
|
||||
with open("./settings.txt", "r") as f:
|
||||
|
|
@ -69,3 +70,8 @@ def run_madmail_installer():
|
|||
child.expect("Enable logging for the server")
|
||||
child.sendline("y")
|
||||
child.expect(pexpect.EOF)
|
||||
|
||||
|
||||
daemon_reload = run(["sudo", "systemctl", "daemon-reload"], capture_output=True, text=True)
|
||||
if daemon_reload.returncode != 0:
|
||||
print(f"Issue running systemctl daemon_reload")
|
||||
Loading…
Add table
Add a link
Reference in a new issue