|
48 | 48 | # Define variables for later use |
49 | 49 | ee_branch=$1 |
50 | 50 | readonly ee_version_old="2.2.3" |
51 | | -readonly ee_version_new="3.5.5" |
| 51 | +readonly ee_version_new="3.5.6" |
52 | 52 | readonly ee_log_dir=/var/log/ee/ |
53 | 53 | readonly ee_install_log=/var/log/ee/install.log |
54 | 54 | readonly ee_linux_distro=$(lsb_release -i | awk '{print $3}') |
|
87 | 87 | # Generate Locale |
88 | 88 | function ee_install_dep() |
89 | 89 | { |
90 | | - ee_lib_echo "Installing required packages, please wait..." |
91 | 90 | if [ "$ee_linux_distro" == "Ubuntu" ]; then |
92 | 91 | apt-get -y install gcc curl gzip python3 python3-apt python3-setuptools python3-dev sqlite3 git tar python-software-properties software-properties-common || ee_lib_error "Unable to install pre depedencies, exit status " 1 |
93 | 92 | elif [ "$ee_linux_distro" == "Debian" ]; then |
@@ -234,7 +233,7 @@ function ee_update_wp_cli() |
234 | 233 | if [ "${WP_CLI_PATH}" != "" ]; then |
235 | 234 | # Get WP-CLI version |
236 | 235 | WP_CLI_VERSION=$(${PHP_PATH} ${WP_CLI_PATH} --allow-root cli version | awk '{ print $2 }') |
237 | | - dpkg --compare-versions ${WP_CLI_VERSION} lt 0.21.1 |
| 236 | + dpkg --compare-versions ${WP_CLI_VERSION} lt 0.23.0 |
238 | 237 | # Update WP-CLI version |
239 | 238 | if [ "$?" == "0" ]; then |
240 | 239 | wget -qO ${WP_CLI_PATH} https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar |
@@ -365,6 +364,15 @@ function ee_upgrade_php(){ |
365 | 364 |
|
366 | 365 | function ee_update_latest() |
367 | 366 | { |
| 367 | + if [ -f /etc/ImageMagick/policy.xml ] |
| 368 | + then |
| 369 | + if [ ! -f /etc/ImageMagick/patch.txt ] |
| 370 | + then |
| 371 | + echo -e "\t<policy domain="coder" rights="none" pattern="EPHEMERAL" />\n\t<policy domain="coder" rights="none" pattern="URL" />\n\t<policy domain="coder" rights="none" pattern="HTTPS" />\n\t<policy domain="coder" rights="none" pattern="MVG" />\n\t<policy domain="coder" rights="none" pattern="MSL" />" >> /etc/ImageMagick/patch.txt |
| 372 | + sed -i '/<policymap>/r /etc/ImageMagick/patch.txt' /etc/ImageMagick/policy.xml |
| 373 | + fi |
| 374 | + fi |
| 375 | + |
368 | 376 | #Move ~/.my.cnf to /etc/mysql/conf.d/my.cnf |
369 | 377 | if [ ! -f /etc/mysql/conf.d/my.cnf ] |
370 | 378 | then |
|
0 commit comments