Update v-install-wordpress

This commit is contained in:
myvesta 2020-07-13 23:46:49 +02:00 committed by GitHub
commit 39c3c619e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,12 +36,11 @@ if [ ! -d "/home/$user/web/$domain/public_html" ]; then
fi
PROTOCOL='http'
LETSENCRYPT=$($VESTA/bin/v-list-web-domain "$user" "$domain" | grep 'LETSENCRYPT:' | awk '{print $2}')
if [ "$LETSENCRYPT" != "yes" ]; then
if [ ! -f "/home/$user/conf/web/ssl.$domain.ca" ]; then
v-add-letsencrypt-domain "$user" "$domain" "www.$domain" "yes"
fi
LETSENCRYPT=$($VESTA/bin/v-list-web-domain "$user" "$domain" | grep 'LETSENCRYPT:' | awk '{print $2}')
if [ "$LETSENCRYPT" = "yes" ]; then
if [ -f "/home/$user/conf/web/ssl.$domain.ca" ]; then
PROTOCOL='https'
if [ -f "/usr/local/vesta/data/templates/web/nginx/force-https.stpl" ]; then
v-change-web-domain-proxy-tpl "$user" "$domain" "force-https" "jpeg,jpg,png,gif,bmp,ico,svg,tif,tiff,css,js,ttf,otf,webp,txt,csv,rtf,doc,docx,xls,xlsx,ppt,pptx,odf,odp,ods,odt,pdf,psd,ai,eot,eps,ps,zip,tar,tgz,gz,rar,bz2,7z,aac,m4a,mp3,mp4,ogg,wav,wma,3gp,avi,flv,m4v,mkv,mov,mpeg,mpg,wmv,exe,iso,dmg,swf,woff,woff2" "yes"