def do_step(context):
settings = context.meta['settings']
index_file = context.meta['index-file']
username = settings["username"]
home_dir = os.path.join("/home", username)
# Copy all the files in ./bosh into the home directory
dir_util.copy_tree("./bosh/", home_dir)
copy("./manifests/{0}".format(index_file), "{0}/manifests/".format(home_dir))
call("chown -R {0} {1}".format(username, home_dir), shell=True)
call("chmod 400 {0}/bosh".format(home_dir), shell=True)
return context
copy_files_home.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录