From 404832ba47b7d7fdc5dba3b858a4ea0dc7e4986b Mon Sep 17 00:00:00 2001 From: "Hongli Lai (Phusion)" Date: Wed, 15 Jul 2015 14:52:39 +0200 Subject: [PATCH] Remove some unnecessary cron jobs Closes GH-205. --- Changelog.md | 1 + image/system_services.sh | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Changelog.md b/Changelog.md index 2b8cbb9..1b102cf 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,6 +2,7 @@ * `my_init` no longer reads from and writes to `/etc/container_environment` if that directory does not exist. Previously it would abort with an error. This change makes it easier to reuse `my_init` in other (non-Baseimage-docker-based) projects without having to modify it. * Baseimage-docker no longer sets the HOME environment variable by default. We used to set HOME by default to work around a Docker issue where HOME defaults to /, but this issue is now gone. Furthermore, the fact that we set HOME interfered with the USER stanza: USER would no longer set HOME. So we got rid of our HOME variable. Closes GH-231. + * Some unnecessary Ubuntu cron jobs have been removed. Closes GH-205. ## 0.9.16 (release date: 2015-01-20) diff --git a/image/system_services.sh b/image/system_services.sh index 813e582..38f8342 100755 --- a/image/system_services.sh +++ b/image/system_services.sh @@ -67,3 +67,8 @@ cp /bd_build/runit/cron /etc/service/cron/run ## Remove useless cron entries. # Checks for lost+found and scans for mtab. rm -f /etc/cron.daily/standard +rm -f /etc/cron.daily/upstart +rm -f /etc/cron.daily/dpkg +rm -f /etc/cron.daily/password +rm -f /etc/cron.weekly/fstrim +