Add support for Debian, merge Debian/Ubuntu platforms
This commit is contained in:
@@ -5,7 +5,7 @@ def delete_mayan():
|
||||
"""
|
||||
Delete Mayan EDMS files from an Ubuntu system
|
||||
"""
|
||||
sudo('rm %s -Rf' % env.virtualenv_path)
|
||||
sudo('rm %(virtualenv_path)s -Rf' % env)
|
||||
|
||||
|
||||
def install_mayan():
|
||||
@@ -13,8 +13,8 @@ def install_mayan():
|
||||
Install Mayan EDMS on an Ubuntu system
|
||||
"""
|
||||
with cd(env.install_path):
|
||||
sudo('virtualenv --no-site-packages %s' % env.virtualenv_name)
|
||||
sudo('virtualenv --no-site-packages %(virtualenv_name)s' % env)
|
||||
|
||||
with cd(env.virtualenv_path):
|
||||
sudo('git clone http://www.github.com/rosarior/mayan %s' % env.repository_name)
|
||||
sudo('source bin/activate; pip install -r %s/requirements/production.txt' % env.repository_name)
|
||||
sudo('git clone http://www.github.com/rosarior/mayan %(repository_name)s' % env)
|
||||
sudo('source bin/activate; pip install -r %(repository_name)s/requirements/production.txt' % env)
|
||||
|
||||
Reference in New Issue
Block a user