From 51a2d47ae440590e4d88b93c1855ffc61a0ae455 Mon Sep 17 00:00:00 2001 From: Wouter Coppens Date: Wed, 26 Jan 2022 16:18:08 +0100 Subject: [PATCH 1/2] Fix cache corruption upgrade-db.php with clear-cache option to fix potential cache corruption. Check-cache doesn't solve all potential problems. --- spotweb/rootfs/etc/cont-init.d/90-spotweb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spotweb/rootfs/etc/cont-init.d/90-spotweb b/spotweb/rootfs/etc/cont-init.d/90-spotweb index 2edb002da..a0a503dda 100644 --- a/spotweb/rootfs/etc/cont-init.d/90-spotweb +++ b/spotweb/rootfs/etc/cont-init.d/90-spotweb @@ -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...." From 8aec91363f54585dcca32a05b540d0b405ebb5cd Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 26 Jan 2022 16:19:29 +0100 Subject: [PATCH 2/2] Update config.json --- spotweb/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotweb/config.json b/spotweb/config.json index 6842b7cd6..006dbf10e 100644 --- a/spotweb/config.json +++ b/spotweb/config.json @@ -6,7 +6,7 @@ ], "name": "Spotweb", "image": "ghcr.io/alexbelgium/spotweb-{arch}", - "version": "1.5.1-3", + "version": "1.5.1-4", "upstream": "1.5.1", "slug": "spotweb", "description": "Spotweb is a decentralized usenet community based on the Spotnet protocol",