From 940e9e6e7376f3e703a5be0394601f9f20ef8fc8 Mon Sep 17 00:00:00 2001 From: Lorenzo Riccucci Date: Sun, 24 Mar 2024 16:19:53 +0100 Subject: [PATCH] Preserve custom images files on container start. (#33) * Preserve custom images files on container start. * Removed one too many spaces between the bracket and semicolon --- core/files/entrypoint_nginx.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/files/entrypoint_nginx.sh b/core/files/entrypoint_nginx.sh index 0ff9329..51744c3 100755 --- a/core/files/entrypoint_nginx.sh +++ b/core/files/entrypoint_nginx.sh @@ -148,7 +148,7 @@ EOT update_misp_data_files(){ for DIR in $(ls /var/www/MISP/app/files.dist); do - if [ "$DIR" = "certs" ]; then + if [ "$DIR" = "certs" ] || [ "$DIR" = "img" ] ; then echo "... rsync -azh \"/var/www/MISP/app/files.dist/$DIR\" \"/var/www/MISP/app/files/\"" rsync -azh "/var/www/MISP/app/files.dist/$DIR" "/var/www/MISP/app/files/" else