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