From 97189acf97602ca48bceaac5d74af5a1538c1ab0 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Tue, 15 Oct 2024 22:37:34 -0500 Subject: [PATCH] Cleanup --- vpnsetup_centos.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/vpnsetup_centos.sh b/vpnsetup_centos.sh index b6f39d0..0eee087 100755 --- a/vpnsetup_centos.sh +++ b/vpnsetup_centos.sh @@ -693,9 +693,7 @@ apply_gcp_mtu_fix() { enable_on_boot() { bigecho "Enabling services on boot..." systemctl --now mask firewalld 2>/dev/null - if [ "$os_type$os_ver" = "ol9" ]; then - systemctl enable nftables 2>/dev/null - elif [ "$use_nft" = 1 ]; then + if [ "$use_nft" = 1 ]; then systemctl enable nftables 2>/dev/null systemctl enable fail2ban 2>/dev/null else @@ -823,9 +821,7 @@ vpnsetup() { install_vpn_pkgs_1 install_vpn_pkgs_2 install_vpn_pkgs_3 - if [ "$os_type$os_ver" != "ol9" ]; then - install_fail2ban - fi + install_fail2ban get_helper_scripts get_libreswan install_libreswan