Skip to content

Commit 2a3af3d

Browse files
committed
Merge branch 'hotfix/v3.5.2'
2 parents 5b44272 + fef94c0 commit 2a3af3d

File tree

7 files changed

+52
-20
lines changed

7 files changed

+52
-20
lines changed

CHANGELOG.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
v3.5.2 - Feb 25, 2016
2+
- Fixed PHP package dependency (Trusty)
3+
14
v3.5.1 - Feb 25, 2016
25
- Fixed #680
36

ee/cli/plugins/site.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ def default(self):
622622
Log.info(self, Log.FAIL + "Oops Something went wrong !!")
623623
Log.info(self, Log.FAIL + "Calling cleanup actions ...")
624624
doCleanupAction(self, domain=ee_domain)
625-
Log.debug(self, str(e))
625+
deleteSiteInfo(self, ee_domain)
626626
Log.error(self, "service nginx reload failed. "
627627
"check issues with `nginx -t` command")
628628
Log.error(self, "Check logs for reason "

ee/cli/plugins/site_functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ def sitebackup(self, data):
627627
.format(data['site_name']), backup_path)
628628

629629
if data['currsitetype'] in ['html', 'php', 'proxy', 'mysql']:
630-
if (data['pagespeed'] is True or data['old_pagespeed_status'] is True) and not data['wp']:
630+
if (data['pagespeed'] is True or data['old_pagespeed_status'] is True or data['php7'] is True) and not data['wp']:
631631
Log.info(self, "Backing up Webroot \t\t", end='')
632632
EEFileUtils.copyfiles(self, ee_site_webroot + '/htdocs', backup_path + '/htdocs')
633633
Log.info(self, "[" + Log.ENDC + "Done" + Log.OKBLUE + "]")
@@ -667,7 +667,7 @@ def sitebackup(self, data):
667667
Log.info(self, "[" + Log.ENDC + "Done" + Log.OKBLUE + "]")
668668
# move wp-config.php/ee-config.php to backup
669669
if data['currsitetype'] in ['mysql', 'proxy']:
670-
if (data['pagespeed'] is True or data['old_pagespeed_status'] is True) and not data['wp']:
670+
if (data['pagespeed'] is True or data['old_pagespeed_status'] is True or data['php7'] is True) and not data['wp']:
671671
EEFileUtils.copyfile(self, configfiles[0], backup_path)
672672
else:
673673
EEFileUtils.mvfile(self, configfiles[0], backup_path)

ee/cli/plugins/stack.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1883,7 +1883,12 @@ def post_pref(self, apt_packages, packages):
18831883
vm_config.close()
18841884
EEService.restart_service(self, 'dovecot')
18851885
EEService.reload_service(self, 'nginx')
1886-
EEService.reload_service(self, 'php5-fpm')
1886+
if EEVariables.ee_platform_codename != 'trusty':
1887+
EEService.reload_service(self, 'php5-fpm')
1888+
else:
1889+
EEService.reload_service(self, 'php5.6-fpm')
1890+
if EEAptGet.is_installed(self, 'php7.0-fpm'):
1891+
EEService.reload_service(self, 'php7.0-fpm')
18871892
self.msg = (self.msg + ["Configure ViMbAdmin:\thttps://{0}:"
18881893
"22222/vimbadmin".format(EEVariables.ee_fqdn)]
18891894
+ ["Security Salt: {0}".format(vm_salt)])
@@ -1905,11 +1910,21 @@ def post_pref(self, apt_packages, packages):
19051910
'{0}roundcubemail/htdocs'
19061911
.format(EEVariables.ee_webroot))
19071912

1913+
#Fix pear install config for trusty
1914+
if EEVariables.ee_platform_codename == 'trusty':
1915+
EEShellExec.cmd_exec(self, "pear config-set php_dir /usr/share/php")
1916+
EEShellExec.cmd_exec(self, "pear config-set doc_dir /lib/php/pear/docs")
1917+
EEShellExec.cmd_exec(self, "pear config-set cfg_dir /lib/php/pear/cfg")
1918+
EEShellExec.cmd_exec(self, "pear config-set data_dir /lib/php/pear/data")
1919+
EEShellExec.cmd_exec(self, "pear config-set test_dir /lib/php/pear/tests")
1920+
EEShellExec.cmd_exec(self, "pear config-set www_dir /lib/php/pear/www")
19081921
# Install Roundcube depednet pear packages
19091922
EEShellExec.cmd_exec(self, "pear install Mail_Mime Net_SMTP"
19101923
" Mail_mimeDecode Net_IDNA2-beta "
19111924
"Auth_SASL Net_Sieve Crypt_GPG")
19121925

1926+
# pear install Mail_Mime Net_SMTP Mail_mimeDecode Net_IDNA2-beta Auth_SASL Net_Sieve Crypt_GPG
1927+
19131928
# Configure roundcube database
19141929
rc_passwd = ''.join(random.sample(string.ascii_letters, 8))
19151930
Log.debug(self, "Creating Database roundcubemail")

ee/core/variables.py

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class EEVariables():
1212
"""Intialization of core variables"""
1313

1414
# EasyEngine version
15-
ee_version = "3.5.1"
15+
ee_version = "3.5.2"
1616

1717

1818
# EasyEngine packages versions
@@ -121,12 +121,14 @@ class EEVariables():
121121
elif ee_platform_codename == 'trusty':
122122
ee_php_repo = "ppa:ondrej/php"
123123
ee_php5_6 = ["php5.6-fpm", "php5.6-curl", "php5.6-gd", "php5.6-imap",
124-
"php5.6-mcrypt", "php5.6-readline", "php5.6-common",
125-
"php5.6-mysql", "php5.6-cli", "php5.6-zip", "php5.6-xml"]
124+
"php5.6-mcrypt", "php5.6-readline", "php5.6-common", "php5.6-recode",
125+
"php5.6-mysql", "php5.6-cli", "php5.6-curl", "php5.6-mbstring",
126+
"php5.6-bcmath", "php5.6-mysql", "php5.6-opcache", "php5.6-zip", "php5.6-xml"]
126127
ee_php7_0 = ["php7.0-fpm", "php7.0-curl", "php7.0-gd", "php7.0-imap",
127-
"php7.0-mcrypt", "php7.0-readline", "php7.0-common",
128-
"php7.0-mysql", "php7.0-cli", "php7.0-zip", "php7.0-xml"]
129-
ee_php_extra = ["php-memcached", "php-imagick", "memcached",
128+
"php7.0-mcrypt", "php7.0-readline", "php7.0-common", "php7.0-recode",
129+
"php7.0-mysql", "php7.0-cli", "php7.0-curl", "php7.0-mbstring",
130+
"php7.0-bcmath", "php7.0-mysql", "php7.0-opcache", "php7.0-zip", "php7.0-xml"]
131+
ee_php_extra = ["php-memcached", "php-imagick", "php-memcache", "memcached",
130132
"graphviz", "php-pear", "php-xdebug", "php-msgpack"]
131133
elif ee_platform_distro == 'debian':
132134
if ee_platform_codename == 'wheezy':
@@ -162,11 +164,16 @@ class EEVariables():
162164
# Mail repo and packages
163165
ee_mail_repo = ("deb http://http.debian.net/debian-backports {codename}"
164166
"-backports main".format(codename=ee_platform_codename))
165-
166-
ee_mail = ["dovecot-core", "dovecot-imapd", "dovecot-pop3d",
167-
"dovecot-lmtpd", "dovecot-mysql", "dovecot-sieve",
168-
"dovecot-managesieved", "postfix-mysql", "php5-cgi",
169-
"php-gettext", "php-pear"]
167+
if ee_platform_codename != 'trusty':
168+
ee_mail = ["dovecot-core", "dovecot-imapd", "dovecot-pop3d",
169+
"dovecot-lmtpd", "dovecot-mysql", "dovecot-sieve",
170+
"dovecot-managesieved", "postfix-mysql", "php5-cgi",
171+
"php-gettext", "php-pear"]
172+
else:
173+
ee_mail = ["dovecot-core", "dovecot-imapd", "dovecot-pop3d",
174+
"dovecot-lmtpd", "dovecot-mysql", "dovecot-sieve",
175+
"dovecot-managesieved", "postfix-mysql", "php5.6-cgi",
176+
"php-gettext", "php-pear", "subversion"]
170177

171178
# Mailscanner repo and packages
172179
ee_mailscanner_repo = ()

install

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ fi
4848
# Define variables for later use
4949
ee_branch=$1
5050
readonly ee_version_old="2.2.3"
51-
readonly ee_version_new="3.5.1"
51+
readonly ee_version_new="3.5.2"
5252
readonly ee_log_dir=/var/log/ee/
5353
readonly ee_install_log=/var/log/ee/install.log
5454
readonly ee_linux_distro=$(lsb_release -i | awk '{print $3}')
@@ -304,7 +304,7 @@ function ee_upgrade_php(){
304304
add-apt-repository -y 'ppa:ondrej/php'
305305
ee_lib_echo "Upgrading required packages, please wait..."
306306
apt-get update &>> /dev/null
307-
apt-get -y install php5.6-fpm php5.6-curl php5.6-gd php5.6-imap php5.6-mcrypt php5.6-readline php5.6-mysql php5.6-cli php5.6-common php-memcached php-imagick memcached graphviz php-pear php-xdebug php-msgpack php5.6-zip php5.6-xml || ee_lib_error "Unable to install PHP 5.6 packages, exit status " 1
307+
apt-get -y install php5.6-fpm php5.6-curl php5.6-gd php5.6-imap php5.6-mcrypt php5.6-readline php5.6-mysql php5.6-cli php5.6-common php5.6-curl php5.6-mbstring php5.6-bcmath php5.6-recode php5.6-mysql php5.6-opcache php-memcached php-imagick memcached graphviz php-pear php-xdebug php-msgpack php5.6-zip php5.6-xml php-memcache || ee_lib_error "Unable to install PHP 5.6 packages, exit status " 1
308308
if [ -e /etc/php5/fpm/pool.d/www.conf -a -e /etc/php5/fpm/pool.d/debug.conf -a -e /etc/php5/fpm/php.ini -a -e /etc/php5/fpm/php-fpm.conf ]; then
309309
cp -f /etc/php5/fpm/pool.d/www.conf /etc/php/5.6/fpm/pool.d/www.conf &>> /dev/null
310310
cp -f /etc/php5/fpm/pool.d/debug.conf /etc/php/5.6/fpm/pool.d/debug.conf &>> /dev/null
@@ -325,10 +325,17 @@ function ee_upgrade_php(){
325325
rm -f /etc/apt/sources.list.d/ondrej-php5-5_6-trusty.list &>> /dev/null
326326
apt-get remove -y php5-fpm php5-curl php5-gd php5-imap php5-mcrypt php5-common php5-readline php5-mysql php5-cli php5-memcache php5-imagick memcached graphviz php-pear
327327

328+
#Fix for PHP 5.6 + 7.0 missed packages
328329
elif [ -f /etc/apt/sources.list.d/ondrej-php-trusty.list ]; then
329-
apt-get -y install php5.6-zip php5.6-xml || ee_lib_error "Unable to install PHP 5.6 packages, exit status " 1
330+
apt-get -y install php5.6-zip php5.6-xml php5.6-curl php5.6-mbstring php5.6-recode php5.6-bcmath php5.6-mysql php5.6-opcache php-memcache || ee_lib_error "Unable to install PHP 5.6 packages, exit status " 1
331+
dpkg-query -W -f='${Status} ${Version}\n' php7.0-fpm 2>/dev/null | grep installed
332+
if [ "$?" -eq "0" ]; then
333+
apt-get -y install php7.0-zip php7.0-xml php7.0-curl php7.0-mbstring php7.0-recode php7.0-bcmath php7.0-mysql php7.0-opcache php-memcache || ee_lib_error "Unable to install PHP 5.6 packages, exit status " 1
334+
service php7.0-fpm restart &>> /dev/null
335+
fi
336+
service php5.6-fpm restart &>> /dev/null
330337
fi
331-
fi
338+
fi
332339

333340
}
334341

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
shutil.copy2(os.path.expanduser("~")+'/.gitconfig', '/root/.gitconfig')
5959

6060
setup(name='ee',
61-
version='3.5.1',
61+
version='3.5.2',
6262
description=long_description,
6363
long_description=long_description,
6464
classifiers=[],

0 commit comments

Comments
 (0)