mirror of
https://github.com/openwrt/packages.git
synced 2025-07-06 21:00:44 +00:00
Fix uci-defaults for PostgreSQL backends Add user 'gnunet' to 'postgres' group Always build with sqlite3 as configure fails when --without-sqlite Signed-off-by: Daniel Golle <daniel@makrotopia.org>
15 lines
538 B
Bash
15 lines
538 B
Bash
#!/bin/sh
|
|
|
|
uci -q get gnunet.namestore || uci set gnunet.namestore=gnunet-config
|
|
uci -q get gnunet.namecache || uci set gnunet.namecache=gnunet-config
|
|
|
|
uci -q batch <<EOF
|
|
set gnunet.namestore.DATABASE=postgres
|
|
set gnunet.namecache.DATABASE=postgres
|
|
set gnunet.namestore_postgres=gnunet-config
|
|
set gnunet.namestore_postgres.CONFIG=postgres://gnunet@%2Ftmp%2Frun%2Fpostgresql/gnunet
|
|
set gnunet.namecache_postgres=gnunet-config
|
|
set gnunet.namecache_postgres.CONFIG=postgres://gnunet@%2Ftmp%2Frun%2Fpostgresql/gnunet
|
|
commit gnunet
|
|
EOF
|