Fixes for migration from EEv3
This commit is contained in:
@@ -19,6 +19,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
- New Nginx package built with Brotli from operating system libraries
|
- New Nginx package built with Brotli from operating system libraries
|
||||||
- Brotli configuration with only well compressible MIME types
|
- Brotli configuration with only well compressible MIME types
|
||||||
- WordPress site url automatically updated to `https://domain.tld` when using `-le/--letsencrypt` flag
|
- WordPress site url automatically updated to `https://domain.tld` when using `-le/--letsencrypt` flag
|
||||||
|
- More informations during certificate issuance about validation mode selected
|
||||||
|
- `--php72` as alternative for `--php`
|
||||||
|
- Automated removal of the deprecated variable `ssl on;` in previous Nginx ssl.conf
|
||||||
|
|
||||||
#### Changed
|
#### Changed
|
||||||
|
|
||||||
@@ -30,7 +33,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
- Removed WordOps version from the Nginx header X-Powered-By to avoid possible security issues
|
- Removed WordOps version from the Nginx header X-Powered-By to avoid possible security issues
|
||||||
- Several code quality improvements to speed up WordOps execution
|
- Several code quality improvements to speed up WordOps execution
|
||||||
- Few adjustements on PHP-FPM configuration (max_input_time,opcache.consistency_checks)
|
- Few adjustements on PHP-FPM configuration (max_input_time,opcache.consistency_checks)
|
||||||
-
|
|
||||||
|
|
||||||
#### Fixed
|
#### Fixed
|
||||||
|
|
||||||
@@ -40,6 +42,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
- Nginx helper configuration during plugin install for Nginx fastcgi_cache and redis-cache
|
- Nginx helper configuration during plugin install for Nginx fastcgi_cache and redis-cache
|
||||||
- phpRedisAdmin stack installation
|
- phpRedisAdmin stack installation
|
||||||
- Fixed Travis CI build on pull requests
|
- Fixed Travis CI build on pull requests
|
||||||
|
- Nginx `server_names_hash_bucket_size` variable error after WordOps upgrade
|
||||||
|
|
||||||
### v3.9.6.2 - 2019-07-24
|
### v3.9.6.2 - 2019-07-24
|
||||||
|
|
||||||
|
|||||||
3
install
3
install
@@ -513,6 +513,7 @@ wo_upgrade_nginx() {
|
|||||||
sed -i "s/locations-php7.conf/locations-wo.conf/" /etc/nginx/sites-available/*
|
sed -i "s/locations-php7.conf/locations-wo.conf/" /etc/nginx/sites-available/*
|
||||||
sed -i "s/locations-php72.conf/locations-wo.conf/" /etc/nginx/sites-available/*
|
sed -i "s/locations-php72.conf/locations-wo.conf/" /etc/nginx/sites-available/*
|
||||||
sed -i "s/locations-php73.conf/locations-wo.conf/" /etc/nginx/sites-available/*
|
sed -i "s/locations-php73.conf/locations-wo.conf/" /etc/nginx/sites-available/*
|
||||||
|
sed -i 's/ssl on;/#ssl on;/' /var/www/*/conf/nginx/ssl.conf
|
||||||
|
|
||||||
# update redis.conf headers
|
# update redis.conf headers
|
||||||
if [ -f /etc/nginx/common/redis.conf ]; then
|
if [ -f /etc/nginx/common/redis.conf ]; then
|
||||||
@@ -529,7 +530,7 @@ wo_upgrade_nginx() {
|
|||||||
else
|
else
|
||||||
VERIFY_NGINX_BUCKET=$(nginx -t 2>&1 | grep "server_names_hash_bucket_size")
|
VERIFY_NGINX_BUCKET=$(nginx -t 2>&1 | grep "server_names_hash_bucket_size")
|
||||||
if [ -n "$VERIFY_NGINX_BUCKET" ]; then
|
if [ -n "$VERIFY_NGINX_BUCKET" ]; then
|
||||||
sed -i "s/# server_names_hash_bucket_size 64;/server_names_hash_bucket_size 64;/g" /etc/nginx/nginx.conf
|
sed -i "s/# server_names_hash_bucket_size 64;/server_names_hash_bucket_size 128;/g" /etc/nginx/nginx.conf
|
||||||
fi
|
fi
|
||||||
systemctl stop nginx
|
systemctl stop nginx
|
||||||
systemctl start nginx
|
systemctl start nginx
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class WOVariables():
|
|||||||
|
|
||||||
# WordOps core variables
|
# WordOps core variables
|
||||||
wo_distro = os.popen("/usr/bin/lsb_release -si "
|
wo_distro = os.popen("/usr/bin/lsb_release -si "
|
||||||
"| tr -d \'\\n\'").read().lower()
|
"| tr -d \'\\n\'").read().lower()
|
||||||
wo_platform_version = platform.linux_distribution()[1]
|
wo_platform_version = platform.linux_distribution()[1]
|
||||||
wo_platform_codename = os.popen(
|
wo_platform_codename = os.popen(
|
||||||
"/usr/bin/lsb_release -sc | tr -d \'\\n\'").read()
|
"/usr/bin/lsb_release -sc | tr -d \'\\n\'").read()
|
||||||
@@ -153,7 +153,12 @@ class WOVariables():
|
|||||||
"http://sfo1.mirrors.digitalocean.com/mariadb/repo/"
|
"http://sfo1.mirrors.digitalocean.com/mariadb/repo/"
|
||||||
"10.3/debian {codename} main"
|
"10.3/debian {codename} main"
|
||||||
.format(codename=wo_platform_codename))
|
.format(codename=wo_platform_codename))
|
||||||
wo_mysql = ["mariadb-server", "percona-toolkit", "python3-mysqldb"]
|
|
||||||
|
if wo_platform_codename == 'jessie':
|
||||||
|
wo_mysql = ["mariadb-server", "percona-toolkit",
|
||||||
|
"python3-mysql.connector"]
|
||||||
|
else:
|
||||||
|
wo_mysql = ["mariadb-server", "percona-toolkit", "python3-mysqldb"]
|
||||||
|
|
||||||
wo_fail2ban = ["fail2ban"]
|
wo_fail2ban = ["fail2ban"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user