Browse Source

Merge branch 'main' into staging/1.4.6

Jaap Marcus 4 years ago
parent
commit
61dd100db2
2 changed files with 6 additions and 3 deletions
  1. 4 1
      CHANGELOG.md
  2. 2 2
      bin/v-add-letsencrypt-domain

+ 4 - 1
CHANGELOG.md

@@ -10,7 +10,10 @@ All notable changes to this project will be documented in this file.
 
 ### Bugfixes
 
-- Fix #1961 Renewal Apache2 only SSL certificate fails 
+- Fix #1961 Renewal Apache2 only SSL certificate fails
+- Fixed #1956 to prevent reset of defined webmail client.
+- Explicitly disable cron reports #1978 
+- Fixed an issue where in rare cases certificate failed to install @dpeca and @myvesta
 - Merge LE logs in 1 file per domain #1968 @tlcd96
 - Refresh phpmyadmin config for Apache2 + PHP FPM
 - Mute notification mysql is down with v-update-sys-rrd-mysql

+ 2 - 2
bin/v-add-letsencrypt-domain

@@ -474,11 +474,11 @@ if [[ "$status" -ne 200 ]]; then
 fi
 
 # Splitting up downloaded pem
-crt_end=$(grep -n END $ssl_dir/$domain.pem |head -n1 |cut -f1 -d:)
+crt_end=$(grep -n 'END CERTIFICATE' $ssl_dir/$domain.pem |head -n1 |cut -f1 -d:)
 head -n $crt_end $ssl_dir/$domain.pem > $ssl_dir/$domain.crt
 
 pem_lines=$(wc -l $ssl_dir/$domain.pem |cut -f 1 -d ' ')
-ca_end=$(grep -n  "BEGIN" $ssl_dir/$domain.pem |tail -n1 |cut -f 1 -d :)
+ca_end=$(grep -n  'BEGIN CERTIFICATE' $ssl_dir/$domain.pem |tail -n1 |cut -f 1 -d :)
 ca_end=$(( pem_lines - crt_end + 1 ))
 tail -n $ca_end $ssl_dir/$domain.pem > $ssl_dir/$domain.ca