Browse Source

Fixed various bugs

bugfixes
gau1991 10 years ago
parent
commit
0f845fa62d
  1. 4
      ee/cli/plugins/stack.py
  2. 3
      ee/core/fileutils.py

4
ee/cli/plugins/stack.py

@ -393,8 +393,8 @@ class EEStackController(CementBaseController):
config = configparser.ConfigParser()
Log.debug(self, "configuring php file"
"/etc/php5/fpm/php-fpm.conf")
config.read(codecs.open("/etc/php5/fpm/php-fpm.conf",
"r", "utf8"))
config.read_file(codecs.open("/etc/php5/fpm/php-fpm.conf",
"r", "utf8"))
config['global']['error_log'] = '/var/log/php5/fpm.log'
config.remove_option('global', 'include')
config['global']['log_level'] = 'notice'

3
ee/core/fileutils.py

@ -90,7 +90,8 @@ class EEFileUtils():
"""
try:
Log.debug(self, "Doning search and replace, File:{0},"
"Source string:{1}, Dest String:{2}".format(src, dst))
"Source string:{1}, Dest String:{2}"
.format(fnm, sstr, rstr))
for line in fileinput.input(fnm, inplace=True):
print(line.replace(sstr, rstr), end='')
fileinput.close()

Loading…
Cancel
Save