Revert previous change as it breaks unit testing and deployment

This commit is contained in:
James Page 2014-08-04 14:24:00 +02:00
parent 49e9778f42
commit f1e156136e

View File

@ -86,13 +86,11 @@ def ensure_swift_directories():
dirs = [
'/etc/swift',
'/var/cache/swift',
'/srv/node',
]
[mkdir(d, owner='swift', group='swift') for d in dirs
if not os.path.isdir(d)]
mountpoints = '/srv/node'
if not os.path.isdir(mountpoints)
mkdir(mountpoints, owner='swift', group='swift', perms=0755)
def register_configs():
release = get_os_codename_package('python-swift', fatal=False) or 'essex'
@ -191,7 +189,7 @@ def setup_storage():
mount(dev, '/srv/node/%s' % _dev, persist=True,
filesystem="xfs")
check_call(['chown', '-R', 'swift:swift', '/srv/node/'])
check_call(['chmod', '-R', '0755', '/srv/node/'])
check_call(['chmod', '-R', '0750', '/srv/node/'])
def fetch_swift_rings(rings_url):