#!/bin/sh

uci -q get gnunet.dhtcache || uci set gnunet.dhtcache=gnunet-config

uci -q batch <<EOF
	del gnunet.datacache_sqlite
	set gnunet.datacache_sqlite=gnunet-config
	set gnunet.datacache_sqlite.FILENAME=/var/run/gnunet/datacache.sqlite
	set gnunet.dhtcache.DATABASE=sqlite
	commit gnunet
EOF
