diff --git a/server/files/entrypoint.sh b/server/files/entrypoint.sh index 7b2e560..5a7aa71 100755 --- a/server/files/entrypoint.sh +++ b/server/files/entrypoint.sh @@ -1,3 +1,3 @@ -#!/bin/sh +#!/bin/bash # start supervisord /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf diff --git a/server/files/entrypoint_cron.sh b/server/files/entrypoint_cron.sh index bc00a3c..4d3d1a7 100755 --- a/server/files/entrypoint_cron.sh +++ b/server/files/entrypoint_cron.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Create the misp cron tab cat << EOF > /etc/cron.d/misp @@ -16,7 +16,9 @@ cat << EOF > /etc/cron.d/misp EOF # Build a fifo buffer for the cron logs, 777 so anyone can write to it -mkfifo /tmp/cronlog +if [[ ! -p /tmp/cronlog ]]; then + mkfifo /tmp/cronlog +fi chmod 777 /tmp/cronlog cron -f | tail -f /tmp/cronlog