packages/net/gnunet-secushare/files/gnunet-secushare-sqlite.defaults
Daniel Golle 1c658e5f30 gnunet-secushare: auto-configure database backend
Import uci-defaults scripts to auto-set psycstore database backend.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2019-03-02 20:22:25 +01:00

11 lines
297 B
Bash

#!/bin/sh
uci -q get gnunet.psycstore || uci set gnunet.psycstore=gnunet-config
uci -q batch <<EOF
del gnunet.psycstore_sqlite
set gnunet.psycstore_sqlite=gnunet-config
set gnunet.psycstore_sqlite.FILENAME=/etc/gnunet/psycstore.sqlite
set gnunet.psycstore.DATABASE=sqlite
commit gnunet
EOF