Correct indexes

This commit is contained in:
jacob.eva 2023-09-21 20:45:55 +01:00
parent 725eb8c84c
commit 5c9e571b26
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E

View File

@ -8,8 +8,8 @@ pacman -S --noconfirm ejabberd
read -p "Enter your domain: " domain read -p "Enter your domain: " domain
domains=("$domain" "conference.$domain" "proxy.$domain" "pubsub.$domain" "upload.$domain") domains=("$domain" "conference.$domain" "proxy.$domain" "pubsub.$domain" "upload.$domain")
certdirs=("/etc/letsencrypt/live/${domains[0]}" "/etc/letsencrypt/live/${domains[1]}" "/etc/letsencrypt/live/${domains[2]}" "/etc/letsencrypt/live/${domains[3]}" "/etc/letsencrypt/live/${domains[5]}") certdirs=("/etc/letsencrypt/live/${domains[0]}" "/etc/letsencrypt/live/${domains[1]}" "/etc/letsencrypt/live/${domains[2]}" "/etc/letsencrypt/live/${domains[3]}" "/etc/letsencrypt/live/${domains[4]}")
ejabberdcertdirs=("${ejabberdtlsdir}/${domains[0]}.pem" "${ejabberdtlsdir}/${domains[1]}.pem" "${ejabberdtlsdir}/${domains[2]}.pem" "${ejabberdtlsdir}/${domains[3]}.pem" "${ejabberdtlsdir}/${domains[5]}.pem") ejabberdcertdirs=("${ejabberdtlsdir}/${domains[0]}.pem" "${ejabberdtlsdir}/${domains[1]}.pem" "${ejabberdtlsdir}/${domains[2]}.pem" "${ejabberdtlsdir}/${domains[3]}.pem" "${ejabberdtlsdir}/${domains[4]}.pem")
index=0 index=0