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:
|
||||
F.write(config)
|
||||
completed_process = subprocess.run(
|
||||
["sudo", "systemctl", "reload", "nginx"])
|
||||
["sudo", "/usr/sbin/service", "nginx", "reload"])
|
||||
return completed_process.returncode
|
||||
|
||||
@classmethod
|
||||
|
Loading…
Reference in New Issue
Block a user