Update filebrowser.sh

This commit is contained in:
CanbiZ
2025-02-10 17:01:45 +01:00
committed by GitHub
parent 10159e934f
commit e4f756ce73

View File

@@ -90,10 +90,7 @@ if [[ "${install_prompt,,}" =~ ^(y|yes)$ ]]; then
read -r -p "Would you like to use No Authentication? (y/N): " auth_prompt
if [[ "${auth_prompt,,}" =~ ^(y|yes)$ ]]; then
msg_info "Configuring No Authentication"
filebrowser config init -a '0.0.0.0' -p "$PORT" --database "$DB_PATH" &>/dev/null
filebrowser config set -a '0.0.0.0' -p "$PORT" --database "$DB_PATH" &>/dev/null
filebrowser config init -a '0.0.0.0' -p "$PORT" --auth.method=noauth --database "$DB_PATH" &>/dev/null
filebrowser config set -a '0.0.0.0' -p "$PORT" --auth.method=noauth --database "$DB_PATH" &>/dev/null
msg_ok "No Authentication configured"
else
msg_info "Setting up default authentication"