소스 검색

Restrict permissions on Postgres backups files. Resolves #322.

Alex Payne 9 년 전
부모
커밋
c55437d341
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1
    0
      roles/tarsnap/files/tarsnap.sh

+ 1
- 0
roles/tarsnap/files/tarsnap.sh 파일 보기

@@ -58,6 +58,7 @@ fi
58 58
 cd /home/
59 59
 
60 60
 # Dump PostgreSQL to file
61
+umask 077
61 62
 sudo -u postgres pg_dumpall -c | gzip > /decrypted/postgresql-backup.sql.gz
62 63
 
63 64
 # Do backups

Loading…
취소
저장