mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
lint
This commit is contained in:
@@ -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...."
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
# ==============================================================================
|
||||
# Runs the daily task to check the spotweb cache
|
||||
# ==============================================================================
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
# ==============================================================================
|
||||
# Runs the hourly task to update spots
|
||||
# ==============================================================================
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
# ==============================================================================
|
||||
# Home Assistant Community Add-on: spotweb
|
||||
# Runs the Nginx daemon
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
bashio::log.info "Starting PHP-FPM..."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user