apacheconfig -K: support de plus de patterns pour le fichier modèle

This commit is contained in:
Jephté Clain 2017-03-17 20:41:34 +04:00
parent ab4148c0ac
commit 37a2dce795
1 changed files with 4 additions and 4 deletions

View File

@ -254,13 +254,13 @@ elif [ "$action" == new-site ]; then
ssltempl=
certstempl=
wwwtempl=
array_from_lines templs "$(list_files "$templdir" "*SITE.conf")"
array_from_lines templs "$(list_files "$templdir" "*SITE*.conf")"
[ ${#templs[*]} -gt 0 ] && clrtempl="${templs[0]}"
array_from_lines templs "$(list_files "$templdir" "*SITE.ssl.conf")"
array_from_lines templs "$(list_files "$templdir" "*SITE*.ssl.conf")"
[ ${#templs[*]} -gt 0 ] && ssltempl="${templs[0]}"
array_from_lines templs "$(list_files "$templdir" "*SITE-certs.conf")"
array_from_lines templs "$(list_files "$templdir" "*SITE*-certs.conf")"
[ ${#templs[*]} -gt 0 ] && certstempl="${templs[0]}"
array_from_lines templs "$(list_dirs "$templdir" "*SITE")"
array_from_lines templs "$(list_dirs "$templdir" "*SITE*")"
[ ${#templs[*]} -gt 0 ] && wwwtempl="${templs[0]}"
found=