commands.py 文件源码

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

项目:argosd 作者: danielkoster 项目源码 文件源码
def run(self):
        """Runs the default installer and sets rights on log directory."""
        install.run(self)

        # Make argosd user owned of log directory
        uid = getpwnam('argosd').pw_uid
        gid = getpwnam('argosd').pw_gid
        os.chown(settings.LOG_PATH, uid, gid)

        # User has full access, others can read
        mode = stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR | \
            stat.S_IRGRP | stat.S_IROTH
        os.chmod(settings.LOG_PATH, mode)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号