Skip to content

Commit 1bd424e

Browse files
authored
Merge pull request #2087 from Websoft9/feat/moodle-update-20260319
fix: update moodle docker entrypoint
2 parents acb282b + 3f6736c commit 1bd424e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/moodle/docker-entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ set -euo pipefail
1515
: "${MOODLE_SITE_NAME:=Moodle Learning Platform}"
1616

1717
# 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
1821
cron
1922

2023
# Restore config.php from moodledata if it was persisted after a previous install

0 commit comments

Comments
 (0)