From 740c0ce50691b553efdb49647acf6fb1e27af786 Mon Sep 17 00:00:00 2001 From: "jacob.eva" Date: Thu, 21 Sep 2023 18:39:51 +0100 Subject: [PATCH] Correct if statement --- xmpp-wizard.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmpp-wizard.sh b/xmpp-wizard.sh index e5792c2..7800060 100644 --- a/xmpp-wizard.sh +++ b/xmpp-wizard.sh @@ -21,7 +21,7 @@ for vhost in ${domains[@]}; do # for each vhost ((index++)) [ ! -d "$certdir[$index]" ] && # if there is no certificate for the domain - if [ systemctl is-active --quiet nginx ] + if systemctl is-active --quiet nginx then pacman -S --noconfirm python3-certbot-nginx certbot -d "$vhost" certonly --nginx --register-unsafely-without-email --agree-tos # request cert with nginx