mirror of https://github.com/MISP/misp-docker
Always use Bash, make fifo if it doesn't exist, closes #39
parent
003d4cd1d7
commit
49f65a9b54
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
# start supervisord
|
# start supervisord
|
||||||
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
|
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
# Create the misp cron tab
|
# Create the misp cron tab
|
||||||
cat << EOF > /etc/cron.d/misp
|
cat << EOF > /etc/cron.d/misp
|
||||||
|
@ -16,7 +16,9 @@ cat << EOF > /etc/cron.d/misp
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Build a fifo buffer for the cron logs, 777 so anyone can write to it
|
# 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
|
chmod 777 /tmp/cronlog
|
||||||
|
|
||||||
cron -f | tail -f /tmp/cronlog
|
cron -f | tail -f /tmp/cronlog
|
||||||
|
|
Loading…
Reference in New Issue