From 59334d7b93972aaa53b9728d6d6afcb9f4d278ec Mon Sep 17 00:00:00 2001 From: ondj <19149300+ondj@users.noreply.github.com> Date: Thu, 28 Nov 2024 14:54:44 +0100 Subject: [PATCH] Add build date to file so it can be shown in container log --- bin/docker-entrypoint.sh | 2 ++ bin/misp_install.sh | 3 +++ 2 files changed, 5 insertions(+) diff --git a/bin/docker-entrypoint.sh b/bin/docker-entrypoint.sh index a300ee2f..9627d192 100644 --- a/bin/docker-entrypoint.sh +++ b/bin/docker-entrypoint.sh @@ -43,8 +43,10 @@ file_env 'ZEROMQ_PASSWORD' chown apache:apache /var/www/MISP/app/{attachments,tmp/logs,files/certs,files/img/orgs,files/img/custom} if [ "$1" = 'supervisord' ]; then + BUILD_DATE=$(cat /build-date) echo "======================================" echo "MISP $MISP_VERSION container image provided by National Cyber and Information Security Agency of the Czech Republic" + echo "Container image build at ${BUILD_DATE}" echo "In case of any problem with this image, please fill issue at https://github.com/NUKIB/misp/issues" echo "======================================" diff --git a/bin/misp_install.sh b/bin/misp_install.sh index 07c4d670..4b9f6eea 100644 --- a/bin/misp_install.sh +++ b/bin/misp_install.sh @@ -92,3 +92,6 @@ chmod 644 /customize/img_orgs/* # Create alias to cake console command echo 'alias cake="su-exec apache /var/www/MISP/app/Console/cake"' >> /root/.bashrc + +# Save build date to file +date -Iseconds > /build-date \ No newline at end of file