diff --git a/enedisgateway2mqtt/rootfs/scripts/99-run.sh b/enedisgateway2mqtt/rootfs/scripts/99-run.sh index c51426cd2..7fe5b1092 100644 --- a/enedisgateway2mqtt/rootfs/scripts/99-run.sh +++ b/enedisgateway2mqtt/rootfs/scripts/99-run.sh @@ -50,7 +50,7 @@ fi # Check if database is here or create symlink if [ -f $DATABASESOURCE ]; then - ln -s $CONFIGSOURCE /data + ln -s ${DATABASESOURCE} /data bashio::log.info "Using database file found in $DATABASESOURCE" else # Create symlink for addon to create database