diff --git a/readme-vars.yml b/readme-vars.yml index 0b87509..46a2105 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -136,6 +136,7 @@ init_diagram: | "bookstack:latest" <- Base Images # changelog changelogs: + - {date: "27.11.26:", desc: "Fix framework directory cleanup when a large number of files is present."} - {date: "28.10.26:", desc: "Use vendor zip from upstream instead of composer for php deps, with fallback to composer if it fails."} - {date: "05.08.26:", desc: "Run the async queue worker as the PUID/PGID-managed abc user."} - {date: "05.07.26:", desc: "Rebase to Alpine 3.24."} diff --git a/root/etc/s6-overlay/s6-rc.d/init-bookstack-config/run b/root/etc/s6-overlay/s6-rc.d/init-bookstack-config/run index 221516d..f1c2dd9 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-bookstack-config/run +++ b/root/etc/s6-overlay/s6-rc.d/init-bookstack-config/run @@ -9,7 +9,8 @@ mkdir -p \ /config/log/bookstack if [[ ! -f /tmp/dbwait.lock ]];then - rm -rf /config/www/framework/{cache,sessions,views,purifier}/* + find -H /config/www/framework/{cache,sessions,views,purifier} \ + -mindepth 1 -maxdepth 1 ! -name '.*' -exec rm -rf {} + fi # check for .env and copy default if needed