foreground cron and create /config/app dir

This commit is contained in:
Paul Hendryx 2016-11-23 21:52:58 -05:00
parent 1acd561dd7
commit 3d3531ffef
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
#!/usr/bin/with-contenv bash
if [ ! -d /config/app ]; then
mkdir /config/app
fi
if [ ! -f /config/app/settings.yml ]; then
cp /opt/dockerhub-stats/config/settings.yml.example /config/app/settings.yml
fi

View File

@ -1,3 +1,3 @@
#!/usr/bin/with-contenv bash
/usr/sbin/cron
/usr/sbin/cron -f