This commit is contained in:
Alexandre
2022-02-18 13:06:51 +01:00
parent ed9845962b
commit 3db34e34f2
12 changed files with 50 additions and 41 deletions

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# ==============================================================================
# Home Assistant Community Add-on: spotweb
# This file validates config and creates the database
@@ -54,7 +55,7 @@ else
password=$(bashio::services mysql "password")
# password='spotweb'
# username='spotweb'
bashio::log.warning "Spotweb is using the Maria DB addon"
bashio::log.warning "Please ensure this is included in your backups"
bashio::log.warning "Uninstalling the MariaDB addon will remove any data"
@@ -91,7 +92,7 @@ if [ "$RESULT" == "$dbname" ]; then
# 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
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...."

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# ==============================================================================
# Runs the daily task to check the spotweb cache
# ==============================================================================

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# ==============================================================================
# Runs the hourly task to update spots
# ==============================================================================

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# ==============================================================================
# Home Assistant Community Add-on: spotweb
# Runs the Nginx daemon

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
bashio::log.info "Starting PHP-FPM..."