mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-01 03:36:06 +02:00
Github bot : script beautyshied
This commit is contained in:
@@ -36,8 +36,8 @@ if [ -f /data/cache.db ] && [ ! -f "$DATABASESOURCE" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# If migration was not performed, enable migration
|
# If migration was not performed, enable migration
|
||||||
if [ -f "$(dirname "${CONFIGSOURCE}")"/enedisgateway.db ]; then
|
if [ -f "$(dirname "${CONFIGSOURCE}")"/enedisgateway.db ]; then
|
||||||
mv "$(dirname "${CONFIGSOURCE}")"/enedisgateway.db /data
|
mv "$(dirname "${CONFIGSOURCE}")"/enedisgateway.db /data
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if database is here or create symlink
|
# Check if database is here or create symlink
|
||||||
|
|||||||
@@ -36,8 +36,8 @@ if [ -f /data/cache.db ] && [ ! -f "$DATABASESOURCE" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# If migration was not performed, enable migration
|
# If migration was not performed, enable migration
|
||||||
if [ -f "$(dirname "${CONFIGSOURCE}")"/enedisgateway.db ]; then
|
if [ -f "$(dirname "${CONFIGSOURCE}")"/enedisgateway.db ]; then
|
||||||
mv "$(dirname "${CONFIGSOURCE}")"/enedisgateway.db /data
|
mv "$(dirname "${CONFIGSOURCE}")"/enedisgateway.db /data
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if database is here or create symlink
|
# Check if database is here or create symlink
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ bashio::log.info "Defining variables"
|
|||||||
if bashio::config.has_value "PUID"; then export USERMAP_UID=$(bashio::config "PUID"); fi
|
if bashio::config.has_value "PUID"; then export USERMAP_UID=$(bashio::config "PUID"); fi
|
||||||
if bashio::config.has_value "PGID"; then export USERMAP_GID=$(bashio::config "PGID"); fi
|
if bashio::config.has_value "PGID"; then export USERMAP_GID=$(bashio::config "PGID"); fi
|
||||||
if bashio::config.has_value "TZ"; then export PAPERLESS_TIME_ZONE=$(bashio::config "TZ"); fi
|
if bashio::config.has_value "TZ"; then export PAPERLESS_TIME_ZONE=$(bashio::config "TZ"); fi
|
||||||
if bashio::config.has_value "OCRLANG"; then
|
if bashio::config.has_value "OCRLANG"; then
|
||||||
PAPERLESS_OCR_LANGUAGES="$(bashio::config "OCRLANG")"
|
PAPERLESS_OCR_LANGUAGES="$(bashio::config "OCRLANG")"
|
||||||
export PAPERLESS_OCR_LANGUAGES=${PAPERLESS_OCR_LANGUAGES,,}
|
export PAPERLESS_OCR_LANGUAGES=${PAPERLESS_OCR_LANGUAGES,,}
|
||||||
fi
|
fi
|
||||||
if bashio::config.has_value "PAPERLESS_OCR_MODE"; then export PAPERLESS_OCR_MODE=$(bashio::config "PAPERLESS_OCR_MODE"); fi
|
if bashio::config.has_value "PAPERLESS_OCR_MODE"; then export PAPERLESS_OCR_MODE=$(bashio::config "PAPERLESS_OCR_MODE"); fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user