~rcj/charms/trusty/ubuntu-repository-cache/lp1500442

« back to all changes in this revision

Viewing changes to lib/ubuntu_repository_cache/storage.py

  • Committer: José Antonio Rey
  • Date: 2015-08-03 14:34:44 UTC
  • mfrom: (197.1.1 master3)
  • Revision ID: jose@ubuntu.com-20150803143444-cagg0pinnhknsu99
Daniel Watkins 2015-08-03 Fix permissions on /srv/<service name>

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
    # Add the primary mount last for squid.  This allocates it last
80
80
    # and saves additional space for metadata mirrors
81
81
    squid_cache = '/'.join((primary_mount, 'squid'))
82
 
    _mkdir(os.path.dirname(squid_cache), owner='proxy', group='proxy',
83
 
           perms=0o770)
84
82
    _mkdir(squid_cache, owner='proxy', group='proxy', perms=0o770)
85
83
    max_size = _disk_free(squid_cache)
86
84
    # Reserve 8GB for metadata and 4GB for the OS