Fix tabs.

This commit is contained in:
2023-08-20 15:18:33 -07:00
parent c117c6aec7
commit d0efeddf7e
2 changed files with 5 additions and 5 deletions

View File

@@ -68,10 +68,10 @@ grep -l proxy_pass $DIR/config/conf.d/*.* | while read file; do
fi
echo "*** Checking $filename ***"
if [[ -f $CERT_DIR/$filename/SELF ]]; then
echo "Removing self-signed certs."
rm -rfv $CERT_DIR/$filename
fi
if [[ -f $CERT_DIR/$filename/SELF ]]; then
echo "Removing self-signed certs."
rm -rfv $CERT_DIR/$filename
fi
if [[ ! -d $CERT_DIR/$filename ]]; then
echo "Getting the domains which need the cert."
domains=`grep -v '$server_name' $file | grep server_name`

View File

@@ -25,7 +25,7 @@ ls $DIR/config/conf.d/*.* | while read file; do
if [[ ! -d $CERT_DIR/$filename ]]; then
echo "Creating self-signed certs at $CERT_DIR/$filename."
mkdir -pv $CERT_DIR/$filename
touch $CERT_DIR/$filename/SELF
touch $CERT_DIR/$filename/SELF
openssl req -new -x509 -days 3 -nodes \
-out $CERT_DIR/$filename/fullchain.pem \
-keyout $CERT_DIR/$filename/privkey.pem \