Patch: add support for Linux Mint

The patch below adds support for Linux Mint, a popular
distribution based on Ubuntu. Tested with Linux Mint 15.


diff --git a/install_erpnext.py b/install_erpnext.py
index 105faa0..b326abb 100644
--- a/install_erpnext.py
+++ b/install_erpnext.py
@@ -51,7 +51,7 @@ def validate_install():
distribution = platform.linux_distribution()[0].lower().replace('"', '')
print "Distribution = ", distribution
is_redhat = distribution in ("redhat", "centos", "centos linux", "fedora")
- is_debian = distribution in ("debian", "ubuntu", "elementary os")
+ is_debian = distribution in ("debian", "ubuntu", "elementary os", "linuxmint")

if not (is_redhat or is_debian):
raise Exception, "Sorry! This installer works only with yum or apt-get package management"



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.
We have added linuxmint distribution in the installation script, thanks for testing.

On 20-Aug-2013, at 12:03 AM, Jose Vasconcellos wrote:

The patch below adds support for Linux Mint, a popular
distribution based on Ubuntu. Tested with Linux Mint 15.


diff --git a/install_erpnext.py b/install_erpnext.py
index 105faa0..b326abb 100644
--- a/install_erpnext.py
+++ b/install_erpnext.py
@@ -51,7 +51,7 @@ def validate_install():
distribution = platform.linux_distribution()[0].lower().replace('"', '')
print "Distribution = ", distribution
is_redhat = distribution in ("redhat", "centos", "centos linux", "fedora")
- is_debian = distribution in ("debian", "ubuntu", "elementary os")
+ is_debian = distribution in ("debian", "ubuntu", "elementary os", "linuxmint")

if not (is_redhat or is_debian):
raise Exception, "Sorry! This installer works only with yum or apt-get package management"



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.