관리-도구
편집 파일: 064_chmod_i360deploy_log.py
from contextlib import suppress import os I360DEPLOY_LOG = "/var/log/i360deploy.log" def migrate(migrator, database, fake=False, **kwargs): with suppress(FileNotFoundError): os.chmod(I360DEPLOY_LOG, 0o600) def rollback(migrator, database, fake=False, **kwargs): pass