자동 모드에서 FreeBSD 감옥 업데이트

자동 모드에서 FreeBSD 감옥 업데이트

모든 프로세스를 cron에 추가하려면 어떻게 해야 합니까? 감옥을 업그레이드하는 자동 방법이 있나요?

다음 단계를 수행한 후:

# make buildworld       
# make installworld DESTDIR=/jails/somejail

다음을 수행할 시간이 왔습니다.

# mergemaster -Ui -D /jails/somejail

이 작업 중에 너무 많은 질문을 함으로써 이 프로세스를 자동화하는 방법(병합 마스터를 의미함)? 모든 구성 파일을 그대로 유지하고 싶습니다.

답변1

모든 구성 파일을 그대로 두는 것은 위험할 수 있습니다. 그러므로 나는 그렇게 하지 말라고 조언합니다. 즉, mergemaster가 모든 것을 자동으로 처리하는 옵션이 있습니다. 맨페이지 에서 mergemaster(8):

-a     Run automatically.  This option will leave all the files that
       differ from the installed versions in the temporary directory
       to be dealt with by hand.  If the temproot directory exists,
       it creates a new one in a previously non-existent directory.
       This option unsets the verbose flag, and is not compatible
       with -i, -F, or -U.  Setting -a makes -w superfluous.

감옥 처리를 자동화하고 싶다면 ezjail및 같은 모든 감옥 관리 기능을 자세히 살펴보는 것이 좋습니다 qjail. 이들은 이미 감옥 업데이트를 처리하기 위한 자동화 기능을 제공합니다.

관련 정보