From 65a78a1fe05f34d1cf4baf838d2ddb2efee106ae Mon Sep 17 00:00:00 2001 From: Patrick Date: Fri, 22 Nov 2024 17:20:08 +0100 Subject: [PATCH] fixed --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index fe33ce0..4bdfe7d 100755 --- a/install.sh +++ b/install.sh @@ -14,7 +14,7 @@ openssl req -new -key /etc/ssl/private/$APP.key -out /etc/ssl/certs/$APP.csr -co openssl x509 -req -in /etc/ssl/certs/$APP.csr -CA /root/ca.crt -CAkey /root/ca.key -CAcreateserial -out /etc/ssl/certs/$APP.crt -extfile openssl.cnf -extensions req_ext -days 500 -sha256 cp nginx.cnf /etc/nginx/sites-enabled/$APP grep -qF "$DNS" /etc/bind/named.conf.local -if [ $? -ne 0 ]; then +if [ $? -eq 0 ]; then echo "$DNS" | tee -a /etc/bind/named.conf.local else echo "Entry already exists in named.conf.local"