Only clear cache, sessions, views on container update

This commit is contained in:
thespad 2025-01-15 10:04:46 +00:00
parent 4efb651e21
commit 17961c4c24
No known key found for this signature in database

View File

@ -8,7 +8,9 @@ mkdir -p \
/config/backups \
/config/log/bookstack
rm -rf /config/www/framework/{cache,sessions,views}/*
if [[ ! -f /tmp/dbwait.lock ]];then
rm -rf /config/www/framework/{cache,sessions,views}/*
fi
# check for .env and copy default if needed
if [[ ! -f "/config/www/.env" ]] || [[ ! -s "/config/www/.env" ]]; then