diff --git a/rattail/fablib/rattail.py b/rattail/fablib/rattail.py index 94d5ec9ea183b23a2469d943236886780249ad33..477379d040e19dd33cf80d42dcb17eb064f2ada9 100644 --- a/rattail/fablib/rattail.py +++ b/rattail/fablib/rattail.py @@ -1,8 +1,8 @@ -# -*- coding: utf-8 -*- +# -*- coding: utf-8; -*- ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2017 Lance Edgar +# Copyright © 2010-2018 Lance Edgar # # This file is part of Rattail. # @@ -40,7 +40,9 @@ def bootstrap_rattail(home='/var/lib/rattail', uid=None, shell='/bin/bash'): Bootstrap a basic Rattail software environment. """ make_system_user('rattail', home=home, uid=uid, shell=shell) - sudo('adduser {0} rattail'.format(env.user)) + sudo('adduser {} rattail'.format(env.user)) + with cd(home): + mkdir('.ssh', owner='rattail:', mode='0700') mkdir('/etc/rattail') mkdir('/srv/rattail')