From 135729d0ab1858923d15f26b5d4a0efe418af843 Mon Sep 17 00:00:00 2001 From: Kcchouette Date: Thu, 23 Feb 2017 22:47:40 +0100 Subject: [PATCH 1/2] Remove the archlinux part that @Angristan had forgotten --- openvpn-install.sh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 4919f6a..6f54509 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -258,14 +258,6 @@ else yum install openvpn iptables openssl wget ca-certificates curl -y fi - # Install dependencies - pacman -Syu openvpn iptables openssl wget ca-certificates curl --needed --noconfirm - if [[ "$OS" = 'arch' ]]; then - touch /etc/iptables/iptables.rules # iptables won't start if this file does not exist - systemctl enable iptables - systemctl start iptables - fi - fi # Find out if the machine uses nogroup or nobody for the permissionless group if grep -qs "^nogroup:" /etc/group; then NOGROUP=nogroup From 2a6422057e066a7dff1c2a4f250ecf52242008f4 Mon Sep 17 00:00:00 2001 From: Kcchouette Date: Fri, 24 Feb 2017 10:33:52 +0100 Subject: [PATCH 2/2] Remove the last $SYSCTL var This var was indeed removed with the commit https://github.com/Angristan/OpenVPN-install/pull/33/commits/f5ec9f3a17e4fbe6017845668fad2f543f83ee06 --- openvpn-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 6f54509..8e6d04f 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -350,8 +350,8 @@ status openvpn.log verb 3" >> /etc/openvpn/server.conf # Create the sysctl configuration file if needed (mainly for Arch Linux) - if [[ ! -e $SYSCTL ]]; then - touch $SYSCTL + if [[ ! -e /etc/sysctl.conf ]]; then + touch /etc/sysctl.conf fi # Enable net.ipv4.ip_forward for the system