From 0128177a4f148deb6117e6e24fe9fe75edb79f8b 2013-05-16 20:03:06 From: Lance Edgar Date: 2013-05-16 20:03:06 Subject: [PATCH] Added `create_user` Fabric command. This creates the `rattail` user on a Linux environment. Probably needs some improvement but it's a start. --- diff --git a/fabfile.py b/fabfile.py index ea3094523705b5f4d4316d30bb1fcbbf30c981a8..709a3f0f0f8cb6339040ed1026d83d5da554b791 100644 --- a/fabfile.py +++ b/fabfile.py @@ -46,3 +46,12 @@ def release(): with cd('/srv/pypi'): run('rm --recursive --force simple') run('compoze index') + + +@task +def create_user(): + """ + Create the 'rattail' user account. + """ + + sudo('adduser --system --home /var/local/lib/rattail --group rattail')