Corrected array variable

This commit is contained in:
jacob.eva 2023-09-21 20:22:50 +01:00
parent ecd289ac70
commit 28e7e09909
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E

View File

@ -60,7 +60,7 @@ echo "Creating ejabberd TLS cert files..." # we have to create special TLS
# certs just for ejabberd because
# it's a special snowflake who
# reads the guardian
for vhost in ${certdirs[@]}; do # for each vhost
for vhost in ${domains[@]}; do # for each vhost
# concatenate the private key and fullchain into one file
cat ${certdirs[$index]}/privkey.pem ${certdirs[$index]}/fullchain.pem > ${ejabberdtlsdir}/${vhost}.pem
# update file perms