From 0a3a46ad633433c5daad6a44d602858498a6d5b9 Mon Sep 17 00:00:00 2001 From: Jason Kendall Date: Fri, 21 Feb 2020 10:14:43 -0500 Subject: [PATCH] Work arround MISP/issues/5608 --- server/files/entrypoint_nginx.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/files/entrypoint_nginx.sh b/server/files/entrypoint_nginx.sh index aaf9f30..1e145c0 100755 --- a/server/files/entrypoint_nginx.sh +++ b/server/files/entrypoint_nginx.sh @@ -129,5 +129,11 @@ echo "... chmod -R g+ws /var/www/MISP/app/files/scripts/tmp ..." && chmod -R g+w # delete pid file [ -f $ENTRYPOINT_PID_FILE ] && rm $ENTRYPOINT_PID_FILE +# Work around https://github.com/MISP/MISP/issues/5608 +if [[ ! -f /var/www/MISP/PyMISP/pymisp/data/describeTypes.json ]]; then + mkdir -p /var/www/MISP/PyMISP/pymisp/data/ + ln -s /usr/local/lib/python3.7/dist-packages/pymisp/data/describeTypes.json /var/www/MISP/PyMISP/pymisp/data/describeTypes.json +fi + # Start NGINX nginx -g 'daemon off;'