From 2f04ac50744758422b9a0e148b45534be431a75e Mon Sep 17 00:00:00 2001 From: Kurt Junghanns Date: Tue, 28 Nov 2017 13:03:18 +0100 Subject: [PATCH] [cron_fix_and_mongodb_version_set] Fixed cron and set mongodb version in maintenance --- maintenance/Dockerfile | 6 +++--- maintenance/crontab | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/maintenance/Dockerfile b/maintenance/Dockerfile index 31b2a50..cfdaa00 100644 --- a/maintenance/Dockerfile +++ b/maintenance/Dockerfile @@ -1,4 +1,4 @@ -FROM mongo:latest +FROM mongo:3.4 MAINTAINER The SlideWiki Project # ---------------- # @@ -37,5 +37,5 @@ RUN apt-get autoremove -y && apt-get -y clean && \ rm -rf /var/lib/apt/lists/* Entrypoint [] -#CMD supervisord -CMD http-server -p 80 -i +CMD supervisord +#CMD http-server -p 80 -i diff --git a/maintenance/crontab b/maintenance/crontab index 93ccbd7..681de70 100644 --- a/maintenance/crontab +++ b/maintenance/crontab @@ -1,2 +1,3 @@ -@daily root /backup.sh &>> /var/log/cron.log +0 0 * * * root /backup.sh >> /var/log/cron.log 2>&1 +#* * * * * root echo "Hello world" >> /var/log/cron.log 2>&1 # An empty line is required at the end of this file for a valid cron file.