remove changing of memcached user in install_erpnext.py

This commit is contained in:
Pratik Vyas 2013-10-28 18:43:34 +05:30
parent f4081c8130
commit de4b720912

View File

@ -113,12 +113,6 @@ def install_using_yum():
def update_config_for_redhat(): def update_config_for_redhat():
import re import re
# update memcache user
with open("/etc/sysconfig/memcached", "r") as original:
memcached_conf = original.read()
with open("/etc/sysconfig/memcached", "w") as modified:
modified.write(re.sub('USER.*', 'USER="%s"' % apache_user, memcached_conf))
# set to autostart on startup # set to autostart on startup
for service in ("mysqld", "httpd", "memcached", "ntpd"): for service in ("mysqld", "httpd", "memcached", "ntpd"):
exec_in_shell("chkconfig --level 2345 %s on" % service) exec_in_shell("chkconfig --level 2345 %s on" % service)