We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b974b79 commit 5bcdf37Copy full SHA for 5bcdf37
bin/v-add-letsencrypt-domain
@@ -231,6 +231,11 @@ ca_end=$(grep -n "BEGIN" $ssl_dir/$domain.pem |tail -n1 |cut -f 1 -d :)
231
ca_end=$(( pem_lines - crt_end + 1 ))
232
tail -n $ca_end $ssl_dir/$domain.pem > $ssl_dir/$domain.ca
233
234
+# Temporary fix for double "END CERTIFICATE"
235
+if [[ $(head -n 1 $ssl_dir/$domain.ca) = "-----END CERTIFICATE-----" ]]; then
236
+ sed -i '1,2d' $ssl_dir/$domain.ca
237
+fi
238
+
239
# Adding SSL
240
ssl_home=$(search_objects 'web' 'LETSENCRYPT' 'yes' 'SSL_HOME')
241
$BIN/v-delete-web-domain-ssl $user $domain > /dev/null 2>&1
0 commit comments