Fix cache corruption

upgrade-db.php with clear-cache option to fix potential cache corruption. Check-cache doesn't solve all potential problems.
This commit is contained in:
Wouter Coppens
2022-01-26 16:18:08 +01:00
committed by GitHub
parent 25f078fac1
commit 51a2d47ae4

View File

@@ -88,6 +88,10 @@ if [ "$RESULT" == "$dbname" ]; then
# database already exists, do healthcheck with upgrade-db
bashio::log.info "Existing database, checking health with upgrade-db...."
s6-setuidgid nginx php8 /app/bin/upgrade-db.php>/dev/null
# database already exists, do healthcheck with upgrade-db
bashio::log.info "Existing database, clearing cache with upgrade-db"
bashio::log.info "to fix potential cache corruption..."
s6-setuidgid nginx php8 /app/bin/upgrade-db.php --clear-cache -yes >/dev/null
else
# database does not yet exist
bashio::log.info "Creating database with default settings...."