6
0
Fork 0

__recycledcloud_wordpress: fix altdomains call

This commit is contained in:
Timothée Floure 2021-10-26 20:26:07 +02:00
parent 4dd5960dbc
commit 973b9b26b4
Signed by: tfloure
GPG key ID: 4502C902C00A1E12

View file

@ -14,10 +14,7 @@ nginx_domain="$(cat "${__object:?}/parameter/domain")"
altdomains= altdomains=
if [ -f "${__object:?}/parameter/altdomains" ]; then if [ -f "${__object:?}/parameter/altdomains" ]; then
while read -r altdomain; altdomains=$(cat "${__object:?}/parameter/altdomains")
do
altdomains="--altdomain $altdomain $altdomains"
done < "${__object:?}/parameter/altdomains"
fi fi
max_upload_size=100M max_upload_size=100M
@ -66,7 +63,7 @@ require="__user/$user" __cron "$instance-db-export-cleanup" \
# NGINX vhost for wordpress hosting. # NGINX vhost for wordpress hosting.
# shellcheck disable=SC2086 # shellcheck disable=SC2086
__nginx "$nginx_domain" \ __nginx "$nginx_domain" \
$altdomains \ --altdomains "$altdomains" \
--config - <<- EOF --config - <<- EOF
root "$homedir"; root "$homedir";
index index.php; index index.php;