16 lines
419 B
Bash
16 lines
419 B
Bash
#!/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 |