gnunet-gns-sqlite.defaults 548 B

12345678910111213141516
  1. #!/bin/sh
  2. uci -q get gnunet.namestore || uci set gnunet.namestore=gnunet-config
  3. uci -q get gnunet.namecache || uci set gnunet.namecache=gnunet-config
  4. uci -q batch <<EOF
  5. del gnunet.namestore_sqlite
  6. set gnunet.namestore_sqlite=gnunet-config
  7. set gnunet.namestore_sqlite.FILENAME=/etc/gnunet/namestore.sqlite
  8. set gnunet.namestore.DATABASE=sqlite
  9. del gnunet.namecache_sqlite
  10. set gnunet.namecache_sqlite=gnunet-config
  11. set gnunet.namecache_sqlite.FILENAME=/var/run/gnunet/namecache.sqlite
  12. set gnunet.namecache.DATABASE=sqlite
  13. commit gnunet
  14. EOF