fix?
This commit is contained in:
parent
1b4329ff4f
commit
a7e16495f2
1 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,8 @@ openssl genrsa -out /etc/ssl/private/$APP.key 2048
|
||||||
openssl req -new -key /etc/ssl/private/$APP.key -out /etc/ssl/certs/$APP.csr -config openssl.cnf
|
openssl req -new -key /etc/ssl/private/$APP.key -out /etc/ssl/certs/$APP.csr -config openssl.cnf
|
||||||
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
|
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
|
cp nginx.cnf /etc/nginx/sites-enabled/$APP
|
||||||
if ! grep -qF "$DNS" /etc/bind/named.conf.local; then
|
grep -qF "$DNS" /etc/bind/named.conf.local
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
echo "$DNS" | tee -a /etc/bind/named.conf.local
|
echo "$DNS" | tee -a /etc/bind/named.conf.local
|
||||||
else
|
else
|
||||||
echo "Entry already exists in named.conf.local"
|
echo "Entry already exists in named.conf.local"
|
||||||
|
|
Loading…
Reference in a new issue