From b1b564c20f16abfdeef8d6ff1a88f5f528bd2875 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 29 Jul 2013 11:44:26 +0530 Subject: [PATCH] [fix] [minor] erpnext installer --- install_erpnext.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install_erpnext.py b/install_erpnext.py index a10ce10680..66138496bb 100644 --- a/install_erpnext.py +++ b/install_erpnext.py @@ -47,7 +47,7 @@ def validate_install(): # check distribution distribution = platform.linux_distribution()[0].lower().replace('"', '') print "Distribution = ", distribution - is_redhat = distribution in ("redhat", "centos", "fedora") + is_redhat = distribution in ("redhat", "centos", "centos linux", "fedora") is_debian = distribution in ("debian", "ubuntu", "elementary os") if not (is_redhat or is_debian): @@ -104,6 +104,7 @@ def update_config_for_redhat(): exec_in_shell("service %s restart" % service) def install_using_apt(): + exec_in_shell("apt-get update") packages = "python python-setuptools python-mysqldb apache2 git memcached ntp vim screen htop" print "-"*80 print "Installing Packages: (This may take some time)"