Using reload instead of wg-quick

This commit is contained in:
sergiotarxz 2024-08-07 21:37:24 +02:00
parent 27759d1baf
commit 2001133b09

View File

@ -44,7 +44,7 @@ sub install_from_script($script, $output_file) {
} }
sub install_if_new_wireguard { sub install_if_new_wireguard {
system 'systemctl', 'restart', 'wg-quick@wg0' if install_from_script('get_wg_config.pl', '/etc/wireguard/wg0.conf'); system 'systemctl', 'reload', 'wg-quick@wg0' if install_from_script('get_wg_config.pl', '/etc/wireguard/wg0.conf');
} }
sub install_if_new_whitelist { sub install_if_new_whitelist {