From 81d942e7982937d1c222f65a326ac5c219091147 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 18 Dec 2022 00:11:57 +0000 Subject: [PATCH] Github bot : script beautyshied --- enedisgateway2mqtt/rootfs/etc/cont-init.d/99-run.sh | 4 ++-- enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/99-run.sh | 4 ++-- paperless_ngx/rootfs/etc/cont-init.d/99-run.sh | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/enedisgateway2mqtt/rootfs/etc/cont-init.d/99-run.sh b/enedisgateway2mqtt/rootfs/etc/cont-init.d/99-run.sh index df8d73cc7..ce90ecce4 100644 --- a/enedisgateway2mqtt/rootfs/etc/cont-init.d/99-run.sh +++ b/enedisgateway2mqtt/rootfs/etc/cont-init.d/99-run.sh @@ -36,8 +36,8 @@ if [ -f /data/cache.db ] && [ ! -f "$DATABASESOURCE" ]; then fi # If migration was not performed, enable migration -if [ -f "$(dirname "${CONFIGSOURCE}")"/enedisgateway.db ]; then - mv "$(dirname "${CONFIGSOURCE}")"/enedisgateway.db /data +if [ -f "$(dirname "${CONFIGSOURCE}")"/enedisgateway.db ]; then + mv "$(dirname "${CONFIGSOURCE}")"/enedisgateway.db /data fi # Check if database is here or create symlink diff --git a/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/99-run.sh b/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/99-run.sh index df8d73cc7..ce90ecce4 100644 --- a/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/99-run.sh +++ b/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/99-run.sh @@ -36,8 +36,8 @@ if [ -f /data/cache.db ] && [ ! -f "$DATABASESOURCE" ]; then fi # If migration was not performed, enable migration -if [ -f "$(dirname "${CONFIGSOURCE}")"/enedisgateway.db ]; then - mv "$(dirname "${CONFIGSOURCE}")"/enedisgateway.db /data +if [ -f "$(dirname "${CONFIGSOURCE}")"/enedisgateway.db ]; then + mv "$(dirname "${CONFIGSOURCE}")"/enedisgateway.db /data fi # Check if database is here or create symlink diff --git a/paperless_ngx/rootfs/etc/cont-init.d/99-run.sh b/paperless_ngx/rootfs/etc/cont-init.d/99-run.sh index 1c8595a29..62b5c9a22 100644 --- a/paperless_ngx/rootfs/etc/cont-init.d/99-run.sh +++ b/paperless_ngx/rootfs/etc/cont-init.d/99-run.sh @@ -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 "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 "OCRLANG"; then - PAPERLESS_OCR_LANGUAGES="$(bashio::config "OCRLANG")" - export PAPERLESS_OCR_LANGUAGES=${PAPERLESS_OCR_LANGUAGES,,} +if bashio::config.has_value "OCRLANG"; then + PAPERLESS_OCR_LANGUAGES="$(bashio::config "OCRLANG")" + export PAPERLESS_OCR_LANGUAGES=${PAPERLESS_OCR_LANGUAGES,,} fi if bashio::config.has_value "PAPERLESS_OCR_MODE"; then export PAPERLESS_OCR_MODE=$(bashio::config "PAPERLESS_OCR_MODE"); fi