mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-12 10:31:26 +02:00
Merge pull request #190 from woutercoppens/patch-7
Fix cache corruption
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
],
|
],
|
||||||
"name": "Spotweb",
|
"name": "Spotweb",
|
||||||
"image": "ghcr.io/alexbelgium/spotweb-{arch}",
|
"image": "ghcr.io/alexbelgium/spotweb-{arch}",
|
||||||
"version": "1.5.1-3",
|
"version": "1.5.1-4",
|
||||||
"upstream": "1.5.1",
|
"upstream": "1.5.1",
|
||||||
"slug": "spotweb",
|
"slug": "spotweb",
|
||||||
"description": "Spotweb is a decentralized usenet community based on the Spotnet protocol",
|
"description": "Spotweb is a decentralized usenet community based on the Spotnet protocol",
|
||||||
|
|||||||
@@ -88,6 +88,10 @@ if [ "$RESULT" == "$dbname" ]; then
|
|||||||
# database already exists, do healthcheck with upgrade-db
|
# database already exists, do healthcheck with upgrade-db
|
||||||
bashio::log.info "Existing database, checking health with upgrade-db...."
|
bashio::log.info "Existing database, checking health with upgrade-db...."
|
||||||
s6-setuidgid nginx php8 /app/bin/upgrade-db.php>/dev/null
|
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
|
else
|
||||||
# database does not yet exist
|
# database does not yet exist
|
||||||
bashio::log.info "Creating database with default settings...."
|
bashio::log.info "Creating database with default settings...."
|
||||||
|
|||||||
Reference in New Issue
Block a user