From b16b103639407f1e9f4d04087a5c9f27bfd293ec Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 17 Aug 2020 14:34:00 +0200 Subject: [PATCH] * Univention: fix not running async jobs because of old overlay storage driver --- doc/docker/fpm/entrypoint.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/docker/fpm/entrypoint.sh b/doc/docker/fpm/entrypoint.sh index aec7ac69ad..0968b54429 100755 --- a/doc/docker/fpm/entrypoint.sh +++ b/doc/docker/fpm/entrypoint.sh @@ -67,6 +67,14 @@ done 2>&1 | tee -a $LOG # as we can NOT exit from until (runs a subshell), we need to check and do it here [ "$(tail -1 $LOG)" = "Installing of EGroupware failed!" ] && exit 1 +# fix cron entries in case docker uses "overlay" storage driver (eg. Univention 4.4) +# cron does NOT executing scripts with "NUMBER OF HARD LINKS > 1" +for f in /etc/crontab /etc/cron.*/*; do + [ $(ls -l $f | cut -d' ' -f2) -gt 1 ] && { + mv $f /tmp + cat /tmp/$(basename $f) > $f + } +done # to run async jobs service cron start