IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Browse Source

Support for chown in copy step.

master
parent
commit
66bc286661
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      focker/steps.py

+ 3
- 0
focker/steps.py View File

@@ -65,6 +65,9 @@ class CopyStep(object):
os.path.join(path, target))
if 'chmod' in options:
os.chmod(os.path.join(path, target), options['chmod'])
if 'chown' in options:
uid, gid = options['chown'].split(':').map(int)
os.chown(os.path.join(path, target), uid, gid)
def create_step(spec):


Loading…
Cancel
Save