diff options
-rwxr-xr-x | Push | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -109,8 +109,10 @@ hosts.each{ |hostname| commands = [] commands << "sh ./#{do_iptables} &&\n" if do_iptables commands << "sh ./#{do_ip6tables} &&\n" if do_ip6tables - commands << "/etc/init.d/openvpn stop "+stop.join(' ')+" &&\n" if stop.size > 0 - commands << "/etc/init.d/openvpn restart "+restart.join(' ')+" && \n" if restart.size > 0 + #commands << "/etc/init.d/openvpn stop "+stop.join(' ')+" &&\n" if stop.size > 0 + #commands << "/etc/init.d/openvpn restart "+restart.join(' ')+" && \n" if restart.size > 0 + commands << "(systemctl daemon-reload || true ) && \n" + commands << "service openvpn restart && \n" if restart.size > 0 or stop.size > 0 commands << "rm "+delete.join(' ')+" &&\n" if delete.size > 0 command = "cd /etc/openvpn && \n"; command << commands.join('') |