summaryrefslogtreecommitdiff
path: root/src/syncdb
diff options
context:
space:
mode:
Diffstat (limited to 'src/syncdb')
-rw-r--r--src/syncdb/Makefile.am6
-rw-r--r--src/syncdb/sync-dbinit.c1
-rw-r--r--src/syncdb/sync_db_postgres.conf4
3 files changed, 7 insertions, 4 deletions
diff --git a/src/syncdb/Makefile.am b/src/syncdb/Makefile.am
index d71e24e..1c1ab91 100644
--- a/src/syncdb/Makefile.am
+++ b/src/syncdb/Makefile.am
@@ -1,6 +1,11 @@
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include
+pkgcfgdir = $(prefix)/share/sync/config.d/
+
+pkgcfg_DATA = \
+ sync_db_postgres.conf
+
plugindir = $(libdir)/sync
if HAVE_POSTGRESQL
@@ -80,4 +85,5 @@ TESTS = \
test_sync_db-postgres
EXTRA_DIST = \
+ $(pkgcfg_DATA) \
test_sync_db_postgres.conf
diff --git a/src/syncdb/sync-dbinit.c b/src/syncdb/sync-dbinit.c
index be7b2ae..a158abf 100644
--- a/src/syncdb/sync-dbinit.c
+++ b/src/syncdb/sync-dbinit.c
@@ -85,6 +85,7 @@ run (void *cls,
struct GNUNET_TIME_Absolute ancient;
now = GNUNET_TIME_absolute_get ();
+ (void) GNUNET_TIME_round_abs (&now);
ancient = GNUNET_TIME_absolute_subtract (now,
GNUNET_TIME_relative_multiply (
GNUNET_TIME_UNIT_YEARS,
diff --git a/src/syncdb/sync_db_postgres.conf b/src/syncdb/sync_db_postgres.conf
index db41bd0..ddf7d06 100644
--- a/src/syncdb/sync_db_postgres.conf
+++ b/src/syncdb/sync_db_postgres.conf
@@ -1,7 +1,3 @@
-[anastasis]
-#The DB plugin to use
-DB = postgres
-
[syncdb-postgres]
#The connection string the plugin has to use for connecting to the database
CONFIG = postgres:///sync