From 1e79f5222f658477a01d532f390c8df659c78ca8 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 27 Jun 2021 11:30:04 +0200 Subject: [PATCH] Suppress error messages if first boot --- filebrowser/run.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/filebrowser/run.sh b/filebrowser/run.sh index 9fcbf07b1..54b31cc7b 100644 --- a/filebrowser/run.sh +++ b/filebrowser/run.sh @@ -156,18 +156,18 @@ NOAUTH="" if bashio::config.true 'NoAuth'; then if ! bashio::fs.file_exists "/data/noauth"; then - rm /data/auth || true + rm /data/auth &> /dev/null || true + rm /config/filebrowser/filebrowser.dB &> /dev/null || true touch /data/noauth - rm /config/filebrowser/filebrowser.dB || true NOAUTH="--noauth" bashio::log.warning "Auth method change, database reset" fi bashio::log.info "NoAuth option selected" else if ! bashio::fs.file_exists "/data/auth"; then - rm /data/noauth || true + rm /data/noauth &> /dev/null || true + rm /config/filebrowser/filebrowser.dB &> /dev/null || true touch /data/auth - rm /config/filebrowser/filebrowser.dB || true bashio::log.warning "Auth method change, database reset" fi bashio::log.info "Default username/password : admin/admin"