From 386b8284d860cd5d6c63c848b64c81e8b422f8a3 Mon Sep 17 00:00:00 2001 From: Ivan Onushkin Date: Fri, 5 Apr 2019 20:57:00 +0300 Subject: [PATCH] Touch cron files to fix 'NUMBER OF HARD LINKS > 1' issue. --- image/services/cron/cron.runit | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/image/services/cron/cron.runit b/image/services/cron/cron.runit index ddd0a0f..e0fbe8e 100755 --- a/image/services/cron/cron.runit +++ b/image/services/cron/cron.runit @@ -1,2 +1,8 @@ #!/bin/sh + +# Touch cron files to fix 'NUMBER OF HARD LINKS > 1' issue. See https://github.com/phusion/baseimage-docker/issues/198 +touch -c /var/spool/cron/crontabs/* +touch -c /etc/crontab +touch -c /etc/cron.d/* /etc/cron.daily/* /etc/cron.hourly/* /etc/cron.monthly/* /etc/cron.weekly/* + exec /usr/sbin/cron -f