Bugs
pull/98/head
Aidaho12 2019-01-30 16:19:04 +06:00
parent 57898032a0
commit 2b014369e1
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ def upload_and_restart(serv, cfg, **kwargs):
if kwargs.get("just_save") == "save":
commands = [ "sudo mv -f " + tmp_file + " /etc/keepalived/keepalived.conf" ]
else:
commands = [ "sudo mv -f " + tmp_file + " /etc/keepalived/keepalived.conf", "sudo systemctl restart keepalived" ]
commands = [ "sudo mv -f " + tmp_file + " /etc/keepalived/keepalived.conf && sudo systemctl restart keepalived" ]
else:
if kwargs.get("just_save") == "save":
commands = [ "sudo haproxy -q -c -f " + tmp_file + "&& sudo mv -f " + tmp_file + " " + sql.get_setting('haproxy_config_path') ]