change reload command

This commit is contained in:
prance 2022-01-28 01:50:29 +01:00
parent da2e76cc88
commit 277513d814

View File

@ -15,7 +15,7 @@ class NGINXConfigurator:
with open(cls._config_path, 'w') as F:
F.write(config)
completed_process = subprocess.run(
["sudo", "systemctl", "reload", "nginx"])
["sudo", "/usr/sbin/service", "nginx", "reload"])
return completed_process.returncode
@classmethod