gnunet-secushare: auto-configure database backend

Import uci-defaults scripts to auto-set psycstore database backend.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle
2019-03-02 20:22:25 +01:00
parent 28ff5c15e2
commit 1c658e5f30
4 changed files with 15 additions and 1 deletions
@@ -1,8 +0,0 @@
#!/bin/sh
uci -q get gnunet.psycstore || uci set gnunet.psycstore=gnunet-config
uci -q batch <<EOF
set gnunet.psycstore.DATABASE=postgres
commit gnunet
EOF
@@ -1,11 +0,0 @@
#!/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