Fix tabs.
This commit is contained in:
@@ -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`
|
||||
|
@@ -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 \
|
||||
|
Reference in New Issue
Block a user