Always use Bash, make fifo if it doesn't exist, closes #39

pull/1/head
Jason Kendall 2020-03-06 11:09:11 -05:00
parent 003d4cd1d7
commit 49f65a9b54
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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