File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -56,12 +56,13 @@ function cleanup_links {
56
56
local -a SYMLINKED_DOMAINS
57
57
local -a DISABLED_DOMAINS
58
58
59
- # Create an array containing domains for which a
60
- # symlinked private key exists in /etc/nginx/certs.
59
+ # Create an array containing domains for which a symlinked certificate
60
+ # exists in /etc/nginx/certs (excluding default cert) .
61
61
for symlinked_domain in /etc/nginx/certs/* .crt; do
62
62
[[ -L " $symlinked_domain " ]] || continue
63
63
symlinked_domain=" ${symlinked_domain##*/ } "
64
64
symlinked_domain=" ${symlinked_domain%* .crt} "
65
+ [[ " $symlinked_domain " != " default" ]] || continue
65
66
SYMLINKED_DOMAINS+=(" $symlinked_domain " )
66
67
done
67
68
[[ " $DEBUG " == 1 ]] && echo " Symlinked domains: ${SYMLINKED_DOMAINS[*]} "
You can’t perform that action at this time.
0 commit comments