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