copy_files_home.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:azurequickstarts 作者: sysgain 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号