Skip to content

Commit 17c7b50

Browse files
committed
Merge tag 'v3.3.9' into develop
Easyengine v3.3.9
2 parents 4d4448a + 787696d commit 17c7b50

File tree

8 files changed

+46
-14
lines changed

8 files changed

+46
-14
lines changed

CHANGELOG.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
v 3.3.9 - Oct 9, 2015
2+
- Fix #625
3+
- Fix #627
4+
- Fix phpmyadmin for remote mysql server
5+
16
v 3.3.8 - Sep 9, 2015
27
- # Fix White screen for NGINX PLUS users
38

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ EasyEngine (ee) is a python tool, which makes it easy to manage your wordpress s
1111
- Debian 7 & 8
1212

1313
**Port Requirements:**
14-
- 22/TCP (Inbound/Outbound) : Standard SSH port
15-
- 80/TCP (Inbound/Outbound) : Standard HTTP port
16-
- 443/TCP(Inbound/Outbound) : Standard HTTPS port
17-
- 22222/TCP (Inbound) : To access EasyEngine admin tools
18-
- 11371/TCP (Outbound) : To connect to GPG Key Server
14+
15+
| Name | Port Number | Inbound | Outbound |
16+
|:-----:|:-----------:|:-------:|:---------:|
17+
|SSH |22 |||
18+
|HTTP |80 |||
19+
|HTTPS/SSL |443 |||
20+
|EE Admin |2222 || |
21+
|GPG Key Server |11371 | ||
1922

2023
## Quick Start
2124

ee/cli/plugins/site.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ def default(self):
655655
webroot=data['webroot'],
656656
dbname=data['ee_db_name'],
657657
dbuser=data['ee_db_user'],
658-
dbhost=data['ee_db_host'])
658+
dbhost=data['ee_mysql_grant_host'])
659659
deleteSiteInfo(self, ee_domain)
660660
Log.error(self, "Check logs for reason "
661661
"`tail /var/log/ee/ee.log` & Try Again!!!")
@@ -670,7 +670,7 @@ def default(self):
670670
doCleanupAction(self, domain=ee_domain,
671671
dbname=data['ee_db_name'],
672672
dbuser=data['ee_db_user'],
673-
dbhost=data['ee_db_host'])
673+
dbhost=data['ee_mysql_grant_host'])
674674
deleteSiteInfo(self, ee_domain)
675675
Log.info(self, Log.FAIL + "service nginx reload failed."
676676
" check issues with `nginx -t` command.")
@@ -694,7 +694,7 @@ def default(self):
694694
doCleanupAction(self, domain=ee_domain,
695695
dbname=data['ee_db_name'],
696696
dbuser=data['ee_db_user'],
697-
dbhost=data['ee_db_host'])
697+
dbhost=data['ee_mysql_grant_host'])
698698
deleteSiteInfo(self, ee_domain)
699699
Log.error(self, "Check logs for reason "
700700
"`tail /var/log/ee/ee.log` & Try Again!!!")
@@ -1433,7 +1433,7 @@ def default(self):
14331433
if ee_site_type in ['mysql', 'wp', 'wpsubdir', 'wpsubdomain']:
14341434
ee_db_name = check_site.db_name
14351435
ee_db_user = check_site.db_user
1436-
ee_db_host = check_site.db_host
1436+
ee_mysql_grant_host = self.app.config.get('mysql', 'grant-host')
14371437
if ee_db_name == 'deleted':
14381438
mark_db_deleted = True
14391439
if self.app.pargs.all:
@@ -1458,7 +1458,7 @@ def default(self):
14581458
mark_db_delete_prompt = True
14591459
Log.info(self, "Deleting Database, {0}, user {1}"
14601460
.format(ee_db_name, ee_db_user))
1461-
deleteDB(self, ee_db_name, ee_db_user, ee_db_host, False)
1461+
deleteDB(self, ee_db_name, ee_db_user, ee_mysql_grant_host, False)
14621462
updateSiteInfo(self, ee_domain,
14631463
db_name='deleted',
14641464
db_user='deleted',

ee/cli/plugins/site_functions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ def setupdatabase(self, data):
223223
data['ee_db_user'] = ee_db_username
224224
data['ee_db_pass'] = ee_db_password
225225
data['ee_db_host'] = EEVariables.ee_mysql_host
226+
data['ee_mysql_grant_host'] = ee_mysql_grant_host
226227
return(data)
227228

228229

ee/cli/plugins/stack.py

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ def post_pref(self, apt_packages, packages):
11051105
for x in packages):
11061106
EEExtract.extract(self, '/tmp/pma.tar.gz', '/tmp/')
11071107
Log.debug(self, 'Extracting file /tmp/pma.tar.gz to '
1108-
'loaction /tmp/')
1108+
'location /tmp/')
11091109
if not os.path.exists('{0}22222/htdocs/db'
11101110
.format(EEVariables.ee_webroot)):
11111111
Log.debug(self, "Creating new directory "
@@ -1116,6 +1116,29 @@ def post_pref(self, apt_packages, packages):
11161116
shutil.move('/tmp/phpmyadmin-STABLE/',
11171117
'{0}22222/htdocs/db/pma/'
11181118
.format(EEVariables.ee_webroot))
1119+
shutil.copyfile('{0}22222/htdocs/db/pma/config.sample.inc.php'
1120+
.format(EEVariables.ee_webroot),
1121+
'{0}22222/htdocs/db/pma/config.inc.php'
1122+
.format(EEVariables.ee_webroot))
1123+
Log.debug(self, 'Setting Blowfish Secret Key FOR COOKIE AUTH to '
1124+
'{0}22222/htdocs/db/pma/config.inc.php file '
1125+
.format(EEVariables.ee_webroot))
1126+
blowfish_key = ''.join([random.choice
1127+
(string.ascii_letters + string.digits)
1128+
for n in range(10)])
1129+
EEFileUtils.searchreplace(self,
1130+
'{0}22222/htdocs/db/pma/config.inc.php'
1131+
.format(EEVariables.ee_webroot),
1132+
"$cfg[\'blowfish_secret\'] = \'\';","$cfg[\'blowfish_secret\'] = \'{0}\';"
1133+
.format(blowfish_key))
1134+
Log.debug(self, 'Setting HOST Server For Mysql to '
1135+
'{0}22222/htdocs/db/pma/config.inc.php file '
1136+
.format(EEVariables.ee_webroot))
1137+
EEFileUtils.searchreplace(self,
1138+
'{0}22222/htdocs/db/pma/config.inc.php'
1139+
.format(EEVariables.ee_webroot),
1140+
"$cfg[\'Servers\'][$i][\'host\'] = \'localhost\';","$cfg[\'Servers\'][$i][\'host\'] = \'{0}\';"
1141+
.format(EEVariables.ee_mysql_host))
11191142
Log.debug(self, 'Setting Privileges of webroot permission to '
11201143
'{0}22222/htdocs/db/pma file '
11211144
.format(EEVariables.ee_webroot))

ee/core/variables.py

Lines changed: 1 addition & 1 deletion
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.3.8"
15+
ee_version = "3.3.9"
1616

1717

1818
# EasyEngine packages versions

install

Lines changed: 1 addition & 1 deletion
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.3.8"
51+
readonly ee_version_new="3.3.9"
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}')

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
os.system("git config --global user.email {0}".format(ee_email))
5555

5656
setup(name='ee',
57-
version='3.3.8',
57+
version='3.3.9',
5858
description=long_description,
5959
long_description=long_description,
6060
classifiers=[],

0 commit comments

Comments
 (0)