~viswesn/charms/trusty/mysql/lint

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/core/host.py

  • Committer: Charles Butler
  • Date: 2015-03-17 15:11:12 UTC
  • mfrom: (134.1.1 mysql)
  • Revision ID: charles.butler@ubuntu.com-20150317151112-ky0bwls16kto0srr
  [r=aisreal, a=lazypower] james.page@ubuntu.com 2015-01-21 Resync helpers for kilo cloud archive source support

Show diffs side-by-side

added added

removed removed

Lines of Context:
184
184
            log("Removing non-directory file {} prior to mkdir()".format(path))
185
185
            os.unlink(realpath)
186
186
            os.makedirs(realpath, perms)
 
187
        os.chown(realpath, uid, gid)
187
188
    elif not path_exists:
188
189
        os.makedirs(realpath, perms)
189
 
    os.chown(realpath, uid, gid)
190
 
    os.chmod(realpath, perms)
 
190
        os.chown(realpath, uid, gid)
191
191
 
192
192
 
193
193
def write_file(path, content, owner='root', group='root', perms=0o444):