__recycledcloud_wordpress: fix altdomains call
This commit is contained in:
parent
4dd5960dbc
commit
973b9b26b4
1 changed files with 2 additions and 5 deletions
|
@ -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;
|
||||||
|
|
Reference in a new issue