Skip to content

Commit

Permalink
Add build date to file so it can be shown in container log
Browse files Browse the repository at this point in the history
  • Loading branch information
ondj committed Dec 12, 2024
1 parent 9ad55ab commit 59334d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "======================================"

Expand Down
3 changes: 3 additions & 0 deletions bin/misp_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 59334d7

Please sign in to comment.