streamlined logging a little bit more.
This commit is contained in:
4
run.sh
4
run.sh
@@ -1,12 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "DW Parser Docker Container started!" > /proc/1/fd/1
|
||||
|
||||
if ! test -f "/app/conf/crontab"; then
|
||||
cp "/app/init/crontab" "/app/conf/crontab"
|
||||
echo "Crontab not found... Initialized..." > /proc/1/fd/1
|
||||
fi
|
||||
crontab "/app/conf/crontab"
|
||||
|
||||
if ! test -f "/app/conf/conf.json"; then
|
||||
cp "/app/init/conf.json" "/app/conf/conf.json"
|
||||
echo "Conf.json not found... Initialized..." > /proc/1/fd/1
|
||||
fi
|
||||
|
||||
cron -f
|
||||
Reference in New Issue
Block a user