From 5f9d045630c8b52dd294970c22b2e30e529bf504 Mon Sep 17 00:00:00 2001
From: Jesse Norell <jesse@kci.net>
Date: Wed, 21 Oct 2020 12:35:54 -0600
Subject: [PATCH] fix stray semicolons

---
 server/scripts/letsencrypt_post_hook.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/server/scripts/letsencrypt_post_hook.sh b/server/scripts/letsencrypt_post_hook.sh
index 27d593196c..5b97fd80da 100644
--- a/server/scripts/letsencrypt_post_hook.sh
+++ b/server/scripts/letsencrypt_post_hook.sh
@@ -28,7 +28,7 @@ if which yum &> /dev/null 2>&1 ; then
         firewall-cmd --zone=public --permanent --remove-service=http
         firewall-cmd --reload
     # If using UFW
-    else; if [ rpm -q ufw ]; then ufw --force enable && ufw deny http; fi
+    elif [ rpm -q ufw ]; then ufw --force enable && ufw deny http
     fi
 # For Debian, Ubuntu or derivatives
 elif apt-get -v >/dev/null 2>&1 ; then
@@ -36,10 +36,10 @@ elif apt-get -v >/dev/null 2>&1 ; then
     if [ $(dpkg-query -W -f='${Status}' nginx 2>/dev/null | grep -c "ok installed") -eq 1 ]; then service nginx start
     elif [ $(dpkg-query -W -f='${Status}' apache2 2>/dev/null | grep -c "ok installed") -eq 1 ]; then service apache2 start
     # If using UFW
-    else; if [ $(dpkg-query -W -f='${Status}' ufw 2>/dev/null | grep -c "ok installed") -eq 1 ]; then ufw --force enable && ufw deny http; fi
+    elif [ $(dpkg-query -W -f='${Status}' ufw 2>/dev/null | grep -c "ok installed") -eq 1 ]; then ufw --force enable && ufw deny http
     fi
 # Try iptables as a final attempt
 else
     iptables -D INPUT  -p tcp  --dport 80    -j ACCEPT
     service iptables save
-fi
\ No newline at end of file
+fi
-- 
GitLab