diff --git a/scripts/deploy-site.sh b/scripts/deploy-site.sh index ccb44f5..f4806e6 100644 --- a/scripts/deploy-site.sh +++ b/scripts/deploy-site.sh @@ -22,7 +22,9 @@ cp source/third-party/fusion-pixel-licenses/* site/fusion-pixel-licenses/ cp source/LICENSE site/LICENSE.txt cp source/NOTICE.md site/NOTICE.txt cp source/third-party/Galmuri-OFL.txt site/Galmuri-OFL.txt -cp source/docker-compose.yaml source/nginx-static.conf . +cp source/nginx-static.conf . +# docker-compose.yaml은 서버 쪽 사본을 그대로 쓴다(보안 패치한 nginx 이미지를 가리킴). 저장소 사본으로 덮어쓰지 않는다. +cmp -s source/docker-compose.yaml docker-compose.yaml || echo "참고: 저장소 docker-compose.yaml과 서버 사본이 다릅니다. 서버 사본을 유지합니다." printf 'ok\n' > site/health.txt sha256sum site/index.html > deploy-sha256.txt chmod -R a+rX site