__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=
|
||||
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;
|
||||
|
|
Reference in a new issue