[DEBUG] 운영 DB 백업 smoke 실행 권한 오류 수정#608
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
❤️ 기능 설명
운영 배포 중 DB 백업 systemd timer 설치 후 smoke backup이 실패하던 문제를 수정했습니다.
기존에는
install_backup_systemd.sh가 smoke backup을/bin/bash /opt/cockple/backup/run_db_backup.sh로 직접 실행했습니다.이 경우 실제 systemd timer 실행 컨텍스트와 달리 배포 사용자 권한으로 실행되어
/var/lib/cockple/db-backups/.db-backup.lock생성 시Permission denied가 발생했습니다.변경 사항:
systemctl start cockple-db-backup.service로 실행systemctl status,journalctl로그 출력/var/lib/cockple/db-backups를 root 전용0700디렉터리로 생성cockple-db-backup.service에User=root,Group=root명시run_db_backup.sh에umask 077추가Swagger/API 변경은 없는 운영 배포 스크립트 수정입니다.
연결된 issue
Closes #607
🩷 Approve 하기 전 확인해주세요!
✅ 체크리스트
테스트 결과:
검증 결과: 통과