We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68460f3 commit 3f6736cCopy full SHA for 3f6736c
1 file changed
apps/moodle/docker-entrypoint.sh
@@ -15,6 +15,9 @@ set -euo pipefail
15
: "${MOODLE_SITE_NAME:=Moodle Learning Platform}"
16
17
# Start cron daemon (runs in background, handles /etc/crontab)
18
+# Remove stale pid file that persists across container restarts (writable layer is preserved),
19
+# which would cause cron to refuse to start and exit non-zero, triggering set -e.
20
+rm -f /var/run/cron.pid 2>/dev/null || true
21
cron
22
23
# Restore config.php from moodledata if it was persisted after a previous install
0 commit comments