Commits

Vladimir Mihailenco committed e12a42b

Ubuntu 10.04 support

Comments (0)

Files changed (3)

fab_deploy/apache.py

     file_name = env.conf['INSTANCE_NAME'] + '.py'
     utils.upload_config_template('django_wsgi.py', wsgi_dir + file_name)
 
+
 @utils.run_as_sudo
 def apache_restart():
     """ Restarts apache using init.d script. """

fab_deploy/system.py

         'lenny': ['libmysqlclient15-dev'],
         'squeeze': ['libmysqlclient-dev'],
         'maverick': ['libmysqlclient-dev'],
+        'lucid': ['libmysqlclient-dev'],
     }
 
     os = utils.detect_os()
     sudo('easy_install -U pip')
     sudo('pip install -U virtualenv')
 
-
 @utils.run_as_sudo
 def setup_backports():
     """ Adds backports repo to apt sources. """
     backports = {
         'lenny': 'http://backports.debian.org/debian-backports lenny-backports main contrib non-free',
         'squeeze': 'http://backports.debian.org/debian-backports squeeze-backports main contrib non-free',
+        'maverick': 'http://archive.ubuntu.com/ubuntu maverick-backports main universe multiverse restricted',
+        'lucid': 'http://archive.ubuntu.com/ubuntu lucid-backports main universe multiverse restricted',
     }
 
     if os not in backports:

fab_deploy/utils.py

         ('lenny', ('debian', '^5', '')),
         ('squeeze', ('debian', '^6', '')),
         ('maverick', ('Ubuntu', '^10.10', '')),
+        ('lucid', ('Ubuntu', '^10.04', '')),
     ]
     for name, p in patterns:
         if match(p[0], distname) and match(p[1], version) and match(p[2], id):