change reload command
This commit is contained in:
parent
da2e76cc88
commit
277513d814
@ -15,7 +15,7 @@ class NGINXConfigurator:
|
|||||||
with open(cls._config_path, 'w') as F:
|
with open(cls._config_path, 'w') as F:
|
||||||
F.write(config)
|
F.write(config)
|
||||||
completed_process = subprocess.run(
|
completed_process = subprocess.run(
|
||||||
["sudo", "systemctl", "reload", "nginx"])
|
["sudo", "/usr/sbin/service", "nginx", "reload"])
|
||||||
return completed_process.returncode
|
return completed_process.returncode
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user