|
@@ -75,7 +75,8 @@ fi
|
|
|
|
|
|
## configure in-container Crontab
|
|
## configure in-container Crontab
|
|
if [ -f "/app/data/crontab" ]; then
|
|
if [ -f "/app/data/crontab" ]; then
|
|
- if ! crontab -u www-data /app/data/crontab; then
|
|
|
|
|
|
+ # http://www.gsp.com/cgi-bin/man.cgi?section=5&topic=crontab
|
|
|
|
+ if ! (cat /app/data/crontab; echo -e '\nMAILTO=""') | crontab -u www-data -; then
|
|
echo "Error importing crontab. Continuing anyway"
|
|
echo "Error importing crontab. Continuing anyway"
|
|
else
|
|
else
|
|
echo "Imported crontab"
|
|
echo "Imported crontab"
|