Initial commit of the fabric file for automatic installation

This commit is contained in:
Roberto Rosario
2012-05-31 20:38:25 -04:00
parent c7ea5271e4
commit ac500e48a4
12 changed files with 216 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
from fabric.api import run, sudo, cd, env, task
@task
def install_database_manager():
print('Installing MySQL')
sudo('apt-get install -y mysql-server libmysqlclient-dev')
with cd(env.virtualenv_path):
sudo('source bin/activate; pip install MySQL-python')
@task
def create_database(*args, **kwargs):
print('Setting up Mayan EDMS\'s MySQL database')
#TODO: create DB and mayan user
#TODO: custom settings_local