From 3f6736cb1f6040d7129003befa54bcf04ba9441d Mon Sep 17 00:00:00 2001 From: zhaojing1987 Date: Fri, 20 Mar 2026 11:05:35 +0800 Subject: [PATCH] fix: update moodle docker entrypoint --- apps/moodle/docker-entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/moodle/docker-entrypoint.sh b/apps/moodle/docker-entrypoint.sh index 298c3be3c..c3e8c853f 100644 --- a/apps/moodle/docker-entrypoint.sh +++ b/apps/moodle/docker-entrypoint.sh @@ -15,6 +15,9 @@ set -euo pipefail : "${MOODLE_SITE_NAME:=Moodle Learning Platform}" # Start cron daemon (runs in background, handles /etc/crontab) +# Remove stale pid file that persists across container restarts (writable layer is preserved), +# which would cause cron to refuse to start and exit non-zero, triggering set -e. +rm -f /var/run/cron.pid 2>/dev/null || true cron # Restore config.php from moodledata if it was persisted after a previous install