From 23222fd59faf75dfbe45ca75dc88c218e569fbac Mon Sep 17 00:00:00 2001 From: DrXala Date: Sun, 16 Jul 2017 15:39:14 +0200 Subject: [PATCH] Fix syntax error... --- openvpn-install.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 6e5f308..99740d8 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -423,14 +423,13 @@ WantedBy=multi-user.target" > /etc/systemd/system/iptables.service fi if [[ "$OS" = 'arch' ]]; then - # Install dependencies - pacman -Syu openvpn iptables openssl wget ca-certificates curl --needed --noconfirm - if [[ "$OS" = 'arch' ]]; then - iptables-save > /etc/iptables/iptables.rules # iptables won't start if this file does not exist + # Install dependencies + pacman -Syu openvpn iptables openssl wget ca-certificates curl --needed --noconfirm + iptables-save > /etc/iptables/iptables.rules # iptables won't start if this file does not exist systemctl daemon-reload - systemctl enable iptables - systemctl start iptables - fi + 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 @@ -567,7 +566,7 @@ verb 3" >> /etc/openvpn/server.conf fi iptables -I FORWARD -s 10.8.0.0/24 -j ACCEPT iptables -I FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT - # save persitant OpenVPN rules + # Save persitent OpenVPN rules iptables-save > $IPTABLES fi # If SELinux is enabled and a custom port was selected, we need this