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)
评论列表
文章目录